diff options
author | Pytal <24800714+Pytal@users.noreply.github.com> | 2023-04-19 11:52:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-19 11:52:09 -0700 |
commit | c18a41a658d2bbf7151b6ffc2e7a31d2a025f1fa (patch) | |
tree | 6fdf734f48a215f29efe20bb2a2970531b6eee71 | |
parent | fd473f89e8ec31b0d050cc293f698390b2e7e689 (diff) | |
parent | ee13dca9ff14d66124cbedbeeb00dbd78a0decce (diff) | |
download | nextcloud-server-c18a41a658d2bbf7151b6ffc2e7a31d2a025f1fa.tar.gz nextcloud-server-c18a41a658d2bbf7151b6ffc2e7a31d2a025f1fa.zip |
Merge pull request #37809 from nextcloud/fix/last-used
-rw-r--r-- | apps/systemtags/lib/Activity/Listener.php | 2 |
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)); |