]> source.dussan.org Git - nextcloud-server.git/commitdiff
further pre-filter search result before setting up share source cache 33710/head
authorRobin Appelman <robin@icewind.nl>
Wed, 17 Aug 2022 11:49:21 +0000 (13:49 +0200)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Fri, 26 Aug 2022 07:09:47 +0000 (07:09 +0000)
Signed-off-by: Robin Appelman <robin@icewind.nl>
apps/files_sharing/lib/Cache.php

index 8729426221b934a7c25b42a368e5670c8709fb8e..02799778d8c6edb26f6e08cc3aa28e8590c463ad 100644 (file)
@@ -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;
+               }
+       }
 }