From b6352b1be8535cc59c0460010b6688c402f6db31 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 17 Aug 2022 13:49:21 +0200 Subject: further pre-filter search result before setting up share source cache Signed-off-by: Robin Appelman --- apps/files_sharing/lib/Cache.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/files_sharing/lib/Cache.php b/apps/files_sharing/lib/Cache.php index 8729426221b..02799778d8c 100644 --- a/apps/files_sharing/lib/Cache.php +++ b/apps/files_sharing/lib/Cache.php @@ -205,4 +205,12 @@ class Cache extends CacheJail { ] ); } + + public function getCacheEntryFromSearchResult(ICacheEntry $rawEntry): ?ICacheEntry { + if ($rawEntry->getStorageId() === $this->getNumericStorageId()) { + return parent::getCacheEntryFromSearchResult($rawEntry); + } else { + return null; + } + } } -- cgit v1.2.3