aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Connector
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-05-12 12:10:38 +0200
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2023-07-06 17:29:13 +0000
commit4e5c3bd1662f1ed06db8e6e6119d471a82a0ce29 (patch)
tree0337785154fc2284c8ce695462173e9afac42c95 /apps/dav/lib/Connector
parentf87286754ef80bcdd424bfb33d918a7cbd3ab8e2 (diff)
downloadnextcloud-server-4e5c3bd1662f1ed06db8e6e6119d471a82a0ce29.tar.gz
nextcloud-server-4e5c3bd1662f1ed06db8e6e6119d471a82a0ce29.zip
fix: no search when LazyFolder was provided
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/dav/lib/Connector')
-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);