diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2020-02-21 17:47:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-21 17:47:53 +0100 |
commit | dd9d4696f2b50153d9dde297ee9efffd220f1f48 (patch) | |
tree | 36110c4f758a009914827ad4e99f56330809f556 /apps/files/lib | |
parent | b7bfe2b34d154814053450141300b4f97cf0651f (diff) | |
parent | 6235175b6dba4ab416db60a21559a69db2defa83 (diff) | |
download | nextcloud-server-dd9d4696f2b50153d9dde297ee9efffd220f1f48.tar.gz nextcloud-server-dd9d4696f2b50153d9dde297ee9efffd220f1f48.zip |
Merge pull request #19412 from nextcloud/fix/19404/make-favorite-public
Make TAG_FAVORITE public
Diffstat (limited to 'apps/files/lib')
-rw-r--r-- | apps/files/lib/Service/TagService.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/files/lib/Service/TagService.php b/apps/files/lib/Service/TagService.php index a03261812b3..a477db324ac 100644 --- a/apps/files/lib/Service/TagService.php +++ b/apps/files/lib/Service/TagService.php @@ -24,7 +24,6 @@ namespace OCA\Files\Service; -use OC\Tags; use OCA\Files\Activity\FavoriteProvider; use OCP\Activity\IManager; use OCP\Files\Folder; @@ -92,14 +91,14 @@ class TagService { $newTags = array_diff($tags, $currentTags); foreach ($newTags as $tag) { - if ($tag === Tags::TAG_FAVORITE) { + if ($tag === ITags::TAG_FAVORITE) { $this->addActivity(true, $fileId, $path); } $this->tagger->tagAs($fileId, $tag); } $deletedTags = array_diff($currentTags, $tags); foreach ($deletedTags as $tag) { - if ($tag === Tags::TAG_FAVORITE) { + if ($tag === ITags::TAG_FAVORITE) { $this->addActivity(false, $fileId, $path); } $this->tagger->unTag($fileId, $tag); |