summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-05-12 12:10:38 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2023-07-07 17:44:04 +0200
commit8d252731927fa7cb129d099d0b2b80711756db61 (patch)
tree626e27d26ae78c616501e23c3db5093cd3505b55
parent2b513e9d12f25fea4fa7de067dd1b4d7e82ee3e9 (diff)
downloadnextcloud-server-8d252731927fa7cb129d099d0b2b80711756db61.tar.gz
nextcloud-server-8d252731927fa7cb129d099d0b2b80711756db61.zip
fix: no search when LazyFolder was provided
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r--apps/dav/lib/Connector/Sabre/FilesReportPlugin.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php b/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php
index 4cccdc842b9..2cae9d948b5 100644
--- a/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php
@@ -27,6 +27,7 @@
*/
namespace OCA\DAV\Connector\Sabre;
+use OC\Files\Node\LazyFolder;
use OC\Files\View;
use OCP\App\IAppManager;
use OCP\Files\Folder;
@@ -332,7 +333,11 @@ class FilesReportPlugin extends ServerPlugin {
// type check to ensure searchBySystemTag is available, it is not
// exposed in API yet
- if (!empty($systemTagIds) && $this->userFolder instanceof \OC\Files\Node\Folder) {
+ if (
+ !empty($systemTagIds)
+ && ($this->userFolder instanceof \OC\Files\Node\Folder
+ || $this->userFolder instanceof LazyFolder)
+ ) {
$tags = $this->tagManager->getTagsByIds($systemTagIds);
$tagName = (current($tags))->getName();
$nodes = $this->userFolder->searchBySystemTag($tagName, $this->userSession->getUser()->getUID(), $limit ?? 0, $offset ?? 0);