Skip to content

Commit a2c8a0b

Browse files
authored
Merge pull request #41347 from nextcloud/backport/41054/stable27
[stable27] get children from dav node when preloading system tags
2 parents 501858d + e46ef2b commit a2c8a0b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

apps/dav/lib/SystemTag/SystemTagPlugin.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,11 @@ private function propfindForFile(PropFind $propFind, Node $node): void {
303303
$fileIds = [$node->getId()];
304304

305305
// note: pre-fetching only supported for depth <= 1
306-
$folderContent = $node->getNode()->getDirectoryListing();
306+
$folderContent = $node->getChildren();
307307
foreach ($folderContent as $info) {
308-
$fileIds[] = $info->getId();
308+
if ($info instanceof Node) {
309+
$fileIds[] = $info->getId();
310+
}
309311
}
310312

311313
$tags = $this->tagMapper->getTagIdsForObjects($fileIds, 'files');

0 commit comments

Comments
 (0)