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:
authorblizzz <blizzz@arthur-schiwon.de>2022-09-29 13:12:44 +0300
committerGitHub <noreply@github.com>2022-09-29 13:12:44 +0300
commit44f7e3e73f646d1aaea3853e1ca45a0e6717c870 (patch)
tree92946636f821dca84b9d81f39bd7a6cef01e9826
parentc2508dbfb1f2b19b14e47fc1c0d87aad6738705b (diff)
parentb6352b1be8535cc59c0460010b6688c402f6db31 (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.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 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;
+ }
+ }
}