Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-08-26 10:05:47 +0300
committerGitHub <noreply@github.com>2022-08-26 10:05:47 +0300
commite9b6b6c42150e23389cf40be1f02e4dbe2a933a5 (patch)
tree0d6846248ee4b3ad8cbc4523bf649f16bc59299c /apps/files_sharing
parentb290a6d6051221cabf8e8a6f55ec206d85d6085e (diff)
parentd9f73d8fd99e55bad5496557e22473f676e880be (diff)
Merge pull request #33604 from nextcloud/search-shared-post-process-filter-24
[24] further pre-filter search result before setting up share source cache
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/lib/Cache.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/Cache.php b/apps/files_sharing/lib/Cache.php
index d245727b138..672777251bf 100644
--- a/apps/files_sharing/lib/Cache.php
+++ b/apps/files_sharing/lib/Cache.php
@@ -196,4 +196,12 @@ class Cache extends CacheJail {
]
);
}
+
+ public function getCacheEntryFromSearchResult(ICacheEntry $rawEntry): ?ICacheEntry {
+ if ($rawEntry->getStorageId() === $this->getNumericStorageId()) {
+ return parent::getCacheEntryFromSearchResult($rawEntry);
+ } else {
+ return null;
+ }
+ }
}