diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-05-11 13:17:49 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-07-07 17:43:52 +0200 |
commit | 03590e86e7a02e382d23c4889a811863281434cd (patch) | |
tree | 2d4dbdcad5c3da0e44e7f86a0694b0b7e7c0fda0 | |
parent | 837fd9f8da08c2c44a4e8af00d52d0622ca7dee2 (diff) | |
download | nextcloud-server-03590e86e7a02e382d23c4889a811863281434cd.tar.gz nextcloud-server-03590e86e7a02e382d23c4889a811863281434cd.zip |
fix: ensure searchBySystemTag() is available
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r-- | apps/dav/lib/Connector/Sabre/FilesReportPlugin.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php b/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php index 7a53c34744c..8330934fa75 100644 --- a/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php +++ b/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php @@ -330,7 +330,9 @@ class FilesReportPlugin extends ServerPlugin { $nodes = []; - if (!empty($systemTagIds)) { + // type check to ensure searchBySystemTag is available, it is not + // exposed in API yet + if (!empty($systemTagIds) && $this->userFolder instanceof \OC\Files\Node\Folder) { $tags = $this->tagManager->getTagsByIds($systemTagIds); $tagName = (current($tags))->getName(); $nodes = $this->userFolder->searchBySystemTag($tagName, $this->userSession->getUser()->getUID(), $limit ?? 0, $offset ?? 0); |