Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
get children from dav node when preloading system tags
Signed-off-by: Robin Appelman <[email protected]>
  • Loading branch information
icewind1991 committed Nov 8, 2023
commit 4a049c20948df9edcba7e4feaa656483654ee0ac
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