mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
fix: improve naming of new systemtags endpoint to systemtags-assigned
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
c0dbde5fba
commit
b1c8fc38a2
2 changed files with 4 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue