aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2023-11-08 18:00:41 +0100
committerGitHub <noreply@github.com>2023-11-08 18:00:41 +0100
commit1acc7c04684a05f024f4c83a8665d4732c2fc5f6 (patch)
tree0cbf134956e22b8116f65ed8231d338b22e6f6b9 /apps
parent77c95503531f38980841d9661d8d3bba484debb6 (diff)
parent4a049c20948df9edcba7e4feaa656483654ee0ac (diff)
downloadnextcloud-server-1acc7c04684a05f024f4c83a8665d4732c2fc5f6.tar.gz
nextcloud-server-1acc7c04684a05f024f4c83a8665d4732c2fc5f6.zip
Merge pull request #41054 from nextcloud/systemtag-children
get children from dav node when preloading system tags
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');