]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: improve naming of new systemtags endpoint to systemtags-assigned
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Thu, 4 May 2023 19:17:55 +0000 (21:17 +0200)
committerArthur Schiwon <blizzz@arthur-schiwon.de>
Tue, 9 May 2023 21:51:51 +0000 (23:51 +0200)
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
apps/dav/lib/SystemTag/SystemTagPlugin.php
apps/dav/lib/SystemTag/SystemTagsInUseCollection.php

index 52ddc7b1b4028a18c5d5b85194395e00ec7ae2b8..224a7de77eb31eb0000f02543a92b3bc3fadc87b 100644 (file)
@@ -244,9 +244,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) {
index 94a86352a9612a5308082d2d246b670d3c9197c5..790ebee792f26cf712518497954801b6cf5febae 100644 (file)
@@ -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;
                }