aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-08-17 13:49:21 +0200
committerRobin Appelman <robin@icewind.nl>2022-08-17 13:49:21 +0200
commitb731c95b79d21034c7f0571ae82facd53ca1dbf5 (patch)
tree9a1e540061515d2da1d6145f2ce871df0d34a1af
parent312b719acf686f51065e83290cd88704d703a50c (diff)
downloadnextcloud-server-b731c95b79d21034c7f0571ae82facd53ca1dbf5.tar.gz
nextcloud-server-b731c95b79d21034c7f0571ae82facd53ca1dbf5.zip
further pre-filter search result before setting up share source cache
Signed-off-by: Robin Appelman <robin@icewind.nl>
-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 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;
+ }
+ }
}