mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Merge pull request #41054 from nextcloud/systemtag-children
get children from dav node when preloading system tags
This commit is contained in:
commit
1acc7c0468
1 changed files with 4 additions and 2 deletions
|
|
@ -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…
Reference in a new issue