mirror of
https://github.com/nextcloud/server.git
synced 2026-03-01 21:10:36 -05:00
Merge pull request #37809 from nextcloud/fix/last-used
This commit is contained in:
commit
c18a41a658
1 changed files with 1 additions and 1 deletions
|
|
@ -245,7 +245,7 @@ class Listener {
|
|||
$lastUsedTags = json_decode($lastUsedTags, true);
|
||||
|
||||
array_unshift($lastUsedTags, $tag->getId());
|
||||
array_unique($lastUsedTags);
|
||||
$lastUsedTags = array_unique($lastUsedTags);
|
||||
$lastUsedTags = array_slice($lastUsedTags, 0, 10);
|
||||
|
||||
$this->config->setUserValue($actor, 'systemtags', 'last_used', json_encode($lastUsedTags));
|
||||
|
|
|
|||
Loading…
Reference in a new issue