diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-08-18 11:58:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-18 11:58:31 +0200 |
commit | cab0f1327e28104ef61e8767f963d20cf38544af (patch) | |
tree | ba691f28da59a01bf555415f03f5c9564079a7c9 /apps | |
parent | ac970e594642ebfd25ad750424f980f173a153ae (diff) | |
parent | b731c95b79d21034c7f0571ae82facd53ca1dbf5 (diff) | |
download | nextcloud-server-cab0f1327e28104ef61e8767f963d20cf38544af.tar.gz nextcloud-server-cab0f1327e28104ef61e8767f963d20cf38544af.zip |
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.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 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; + } + } } |