Skip to content

Commit

Permalink
get children from dav node when preloading system tags
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <[email protected]>
  • Loading branch information
icewind1991 authored and backportbot-nextcloud[bot] committed Nov 8, 2023
1 parent 3be53b2 commit e46ef2b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/dav/lib/SystemTag/SystemTagPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,11 @@ private function propfindForFile(PropFind $propFind, Node $node): void {
$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');
Expand Down

0 comments on commit e46ef2b

Please sign in to comment.