Merge pull request #33575 from nextcloud/search-shared-post-process-filter

further pre-filter search result before setting up share source cache
This commit is contained in:
Carl Schwan 2022-08-18 11:58:31 +02:00 committed by GitHub
commit cab0f1327e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}
}
}