diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-08-26 10:05:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-26 10:05:47 +0300 |
commit | e9b6b6c42150e23389cf40be1f02e4dbe2a933a5 (patch) | |
tree | 0d6846248ee4b3ad8cbc4523bf649f16bc59299c /apps/files_sharing | |
parent | b290a6d6051221cabf8e8a6f55ec206d85d6085e (diff) | |
parent | d9f73d8fd99e55bad5496557e22473f676e880be (diff) |
Merge pull request #33604 from nextcloud/search-shared-post-process-filter-24
[24] further pre-filter search result before setting up share source cache
Diffstat (limited to 'apps/files_sharing')
-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 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; + } + } } |