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:
authorRobin Appelman <robin@icewind.nl>2022-08-17 14:49:21 +0300
committerRobin Appelman <robin@icewind.nl>2022-08-18 14:41:12 +0300
commitd9f73d8fd99e55bad5496557e22473f676e880be (patch)
tree38e8b63604ecbe4c8a749492f7960e2ccc806f7b
parentdbab6a648b79a51898ff22bae9ae9c3ff9d7b9bf (diff)
further pre-filter search result before setting up share source cachesearch-shared-post-process-filter-24
Signed-off-by: Robin Appelman <robin@icewind.nl>
-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;
+ }
+ }
}