summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-05-04 21:17:55 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2023-05-16 12:46:55 +0200
commitb1c8fc38a2713dae12f796c1f48e6cb6088bd2cf (patch)
tree7d2cd0ca721535fc27f1204497ff3b1c0d598340
parentc0dbde5fba48be3b93e52087c4b7e5b59e6377ed (diff)
downloadnextcloud-server-b1c8fc38a2713dae12f796c1f48e6cb6088bd2cf.tar.gz
nextcloud-server-b1c8fc38a2713dae12f796c1f48e6cb6088bd2cf.zip
fix: improve naming of new systemtags endpoint to systemtags-assigned
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r--apps/dav/lib/SystemTag/SystemTagPlugin.php6
-rw-r--r--apps/dav/lib/SystemTag/SystemTagsInUseCollection.php2
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/dav/lib/SystemTag/SystemTagPlugin.php b/apps/dav/lib/SystemTag/SystemTagPlugin.php
index 27007d7fb8b..31e0e42f0a7 100644
--- a/apps/dav/lib/SystemTag/SystemTagPlugin.php
+++ b/apps/dav/lib/SystemTag/SystemTagPlugin.php
@@ -226,9 +226,9 @@ class SystemTagPlugin extends \Sabre\DAV\ServerPlugin {
return;
}
- // child nodes from systemtags-current should point to normal tag endpoint
- if (preg_match('/^systemtags-current\/[0-9]+/', $propFind->getPath())) {
- $propFind->setPath(str_replace('systemtags-current/', 'systemtags/', $propFind->getPath()));
+ // child nodes from systemtags-assigned should point to normal tag endpoint
+ if (preg_match('/^systemtags-assigned\/[0-9]+/', $propFind->getPath())) {
+ $propFind->setPath(str_replace('systemtags-assigned/', 'systemtags/', $propFind->getPath()));
}
$propFind->handle(self::ID_PROPERTYNAME, function () use ($node) {
diff --git a/apps/dav/lib/SystemTag/SystemTagsInUseCollection.php b/apps/dav/lib/SystemTag/SystemTagsInUseCollection.php
index 94a86352a96..790ebee792f 100644
--- a/apps/dav/lib/SystemTag/SystemTagsInUseCollection.php
+++ b/apps/dav/lib/SystemTag/SystemTagsInUseCollection.php
@@ -42,7 +42,7 @@ class SystemTagsInUseCollection extends \Sabre\DAV\SimpleCollection {
$this->userSession = $userSession;
$this->rootFolder = $rootFolder;
$this->mediaType = $mediaType;
- $this->name = 'systemtags-current';
+ $this->name = 'systemtags-assigned';
if ($this->mediaType != '') {
$this->name .= '/' . $this->mediaType;
}