]> source.dussan.org Git - nextcloud-server.git/commitdiff
further pre-filter search result before setting up share source cache 33604/head
authorRobin Appelman <robin@icewind.nl>
Wed, 17 Aug 2022 11:49:21 +0000 (13:49 +0200)
committerRobin Appelman <robin@icewind.nl>
Thu, 18 Aug 2022 11:41:12 +0000 (13:41 +0200)
Signed-off-by: Robin Appelman <robin@icewind.nl>
apps/files_sharing/lib/Cache.php

index d245727b138ebc7e0ea10c1e32ccc3b3340957f2..672777251bf9ecc77947a26a22e187d498c87062 100644 (file)
@@ -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;
+               }
+       }
 }