summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Node/Folder.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-07-11 14:22:44 +0200
committerGitHub <noreply@github.com>2023-07-11 14:22:44 +0200
commit59466b3424066012ab808fa0a36c6611321fa3cb (patch)
treea37691a67f57381f28c52a528d5e09820ba989d5 /lib/private/Files/Node/Folder.php
parent99ff886d5d5c2a20a204cd3bce3eba08bfdbbe7a (diff)
parent2ca8c7102bcf65d3f5ce58696d9bade504416c87 (diff)
downloadnextcloud-server-59466b3424066012ab808fa0a36c6611321fa3cb.tar.gz
nextcloud-server-59466b3424066012ab808fa0a36c6611321fa3cb.zip
Merge pull request #39233 from nextcloud/backport/39202/stable25
[stable25] use more efficient tag retrieval on DAV report request
Diffstat (limited to 'lib/private/Files/Node/Folder.php')
-rw-r--r--lib/private/Files/Node/Folder.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/Files/Node/Folder.php b/lib/private/Files/Node/Folder.php
index beb2ac60d55..cb97c5a6d32 100644
--- a/lib/private/Files/Node/Folder.php
+++ b/lib/private/Files/Node/Folder.php
@@ -301,6 +301,11 @@ class Folder extends Node implements \OCP\Files\Folder {
return $this->search($query);
}
+ public function searchBySystemTag(string $tagName, string $userId, int $limit = 0, int $offset = 0): array {
+ $query = $this->queryFromOperator(new SearchComparison(ISearchComparison::COMPARE_EQUAL, 'systemtag', $tagName), $userId, $limit, $offset);
+ return $this->search($query);
+ }
+
/**
* @param int $id
* @return \OC\Files\Node\Node[]