aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2023-10-23 11:38:20 +0200
committerRobin Appelman <robin@icewind.nl>2023-11-08 15:33:32 +0100
commit4a049c20948df9edcba7e4feaa656483654ee0ac (patch)
treea61771bab8c8fb5ba17ec3be3074ecd93d7e5475 /apps
parent9285fe04ff277088bc06eda264712d3a164539a9 (diff)
downloadnextcloud-server-4a049c20948df9edcba7e4feaa656483654ee0ac.tar.gz
nextcloud-server-4a049c20948df9edcba7e4feaa656483654ee0ac.zip
get children from dav node when preloading system tags
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/SystemTag/SystemTagPlugin.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/dav/lib/SystemTag/SystemTagPlugin.php b/apps/dav/lib/SystemTag/SystemTagPlugin.php
index c5d200d578e..58f61c13232 100644
--- a/apps/dav/lib/SystemTag/SystemTagPlugin.php
+++ b/apps/dav/lib/SystemTag/SystemTagPlugin.php
@@ -303,9 +303,11 @@ class SystemTagPlugin extends \Sabre\DAV\ServerPlugin {
$fileIds = [$node->getId()];
// note: pre-fetching only supported for depth <= 1
- $folderContent = $node->getNode()->getDirectoryListing();
+ $folderContent = $node->getChildren();
foreach ($folderContent as $info) {
- $fileIds[] = $info->getId();
+ if ($info instanceof Node) {
+ $fileIds[] = $info->getId();
+ }
}
$tags = $this->tagMapper->getTagIdsForObjects($fileIds, 'files');