summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2023-04-18 18:27:51 -0700
committerChristopher Ng <chrng8@gmail.com>2023-04-18 18:27:51 -0700
commitee13dca9ff14d66124cbedbeeb00dbd78a0decce (patch)
tree1d80b315f8349cafc0d42a2564dcd1da775a13a6 /apps
parentd6f51cf9432f19c3c826b4a6350476d747132e5b (diff)
downloadnextcloud-server-ee13dca9ff14d66124cbedbeeb00dbd78a0decce.tar.gz
nextcloud-server-ee13dca9ff14d66124cbedbeeb00dbd78a0decce.zip
Dedupe last used tags
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/systemtags/lib/Activity/Listener.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/systemtags/lib/Activity/Listener.php b/apps/systemtags/lib/Activity/Listener.php
index 3b3d3b49662..ab897f3037a 100644
--- a/apps/systemtags/lib/Activity/Listener.php
+++ b/apps/systemtags/lib/Activity/Listener.php
@@ -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));