Browse Source

Merge pull request #41054 from nextcloud/systemtag-children

get children from dav node when preloading system tags
pull/41266/head
Robin Appelman 2 years ago
committed by GitHub
parent
commit
1acc7c0468
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      apps/dav/lib/SystemTag/SystemTagPlugin.php

6
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');

Loading…
Cancel
Save