diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2022-09-29 13:12:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-29 13:12:44 +0300 |
commit | 44f7e3e73f646d1aaea3853e1ca45a0e6717c870 (patch) | |
tree | 92946636f821dca84b9d81f39bd7a6cef01e9826 | |
parent | c2508dbfb1f2b19b14e47fc1c0d87aad6738705b (diff) | |
parent | b6352b1be8535cc59c0460010b6688c402f6db31 (diff) |
Merge pull request #33710 from nextcloud/backport/33604/stable23
[stable23] further pre-filter search result before setting up share source cache
-rw-r--r-- | apps/files_sharing/lib/Cache.php | 8 |
1 files changed, 8 insertions, 0 deletions
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; + } + } } |