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
path: root/apps
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-08-18 12:58:31 +0300
committerGitHub <noreply@github.com>2022-08-18 12:58:31 +0300
commitcab0f1327e28104ef61e8767f963d20cf38544af (patch)
treeba691f28da59a01bf555415f03f5c9564079a7c9 /apps
parentac970e594642ebfd25ad750424f980f173a153ae (diff)
parentb731c95b79d21034c7f0571ae82facd53ca1dbf5 (diff)
Merge pull request #33575 from nextcloud/search-shared-post-process-filter
further pre-filter search result before setting up share source cache
Diffstat (limited to 'apps')
-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 707b64b79d7..80f9f64d1aa 100644
--- a/apps/files_sharing/lib/Cache.php
+++ b/apps/files_sharing/lib/Cache.php
@@ -197,4 +197,12 @@ class Cache extends CacheJail {
]
);
}
+
+ public function getCacheEntryFromSearchResult(ICacheEntry $rawEntry): ?ICacheEntry {
+ if ($rawEntry->getStorageId() === $this->getNumericStorageId()) {
+ return parent::getCacheEntryFromSearchResult($rawEntry);
+ } else {
+ return null;
+ }
+ }
}