aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-05-11 13:17:49 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2023-06-21 18:19:08 +0200
commitbe50bd1b0f959f883f413cd496e5bfd7182c15a5 (patch)
tree1011f44fed98cd4f76d3028b53cdcf9c378a2ce0 /apps/dav/lib/Connector/Sabre/FilesReportPlugin.php
parent783e32a64da72d1fe15b983f14297daaaad0dff8 (diff)
downloadnextcloud-server-be50bd1b0f959f883f413cd496e5bfd7182c15a5.tar.gz
nextcloud-server-be50bd1b0f959f883f413cd496e5bfd7182c15a5.zip
fix: ensure searchBySystemTag() is available
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/dav/lib/Connector/Sabre/FilesReportPlugin.php')
-rw-r--r--apps/dav/lib/Connector/Sabre/FilesReportPlugin.php4
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);