mirror of
https://github.com/nextcloud/server.git
synced 2026-03-01 21:10:36 -05:00
Dedupe last used tags
Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
parent
d6f51cf943
commit
ee13dca9ff
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