diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-07-06 22:33:20 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-07-07 12:25:04 +0200 |
commit | a7b4f502aa546fd7046316a92078d4fd44162fe4 (patch) | |
tree | 7824f16c120d352f2515f5391ca93115b743c678 /apps/dav/lib/Connector/Sabre | |
parent | 35de0b5504c43722e4a7c66e8830687130652b23 (diff) | |
download | nextcloud-server-a7b4f502aa546fd7046316a92078d4fd44162fe4.tar.gz nextcloud-server-a7b4f502aa546fd7046316a92078d4fd44162fe4.zip |
refactor: adjust to unexposed searchBySystemTag
- in this backport we have to drop the breaking addition in
\OCP\Files\Folder
- this requires adjustments in check for the existance of the method but
also in testing
- another change in \OCP\SystemTag\ISystemTagManager can be applied as
this interface is not implemented elsewhere
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/dav/lib/Connector/Sabre')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/FilesReportPlugin.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php b/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php index 4b26d837779..1c6727e68ca 100644 --- a/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php +++ b/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php @@ -336,7 +336,7 @@ class FilesReportPlugin extends ServerPlugin { // type check to ensure searchBySystemTag is available, it is not // exposed in API yet - if (!empty($systemTagIds)) { + if (!empty($systemTagIds) && method_exists($this->userFolder, 'searchBySystemTag')) { $tags = $this->tagManager->getTagsByIds($systemTagIds, $this->userSession->getUser()); // For we run DB queries per tag and require intersection, we cannot apply limit and offset for DB queries on multi tag search. |