Browse Source
get children from dav node when preloading system tags
Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/41054/head
Robin Appelman
2 years ago
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
1 changed files with
4 additions and
2 deletions
-
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'); |
|
|
|
|