diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-11-15 22:39:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-15 22:39:38 +0100 |
commit | a2c8a0b29c6d232a7aade6e606362f323252398f (patch) | |
tree | 6172c778b979544077e7e4a682e996c624679bad /apps/dav | |
parent | 501858dd63f13d72c448db96cc68aedd654b1dcd (diff) | |
parent | e46ef2b355e3a7a95f25d5ca66d8288d303d9ea8 (diff) | |
download | nextcloud-server-a2c8a0b29c6d232a7aade6e606362f323252398f.tar.gz nextcloud-server-a2c8a0b29c6d232a7aade6e606362f323252398f.zip |
Merge pull request #41347 from nextcloud/backport/41054/stable27
[stable27] get children from dav node when preloading system tags
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/SystemTag/SystemTagPlugin.php | 6 |
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'); |