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

[24] further pre-filter search result before setting up share source cache
This commit is contained in:
Vincent Petry 2022-08-26 09:05:47 +02:00 committed by GitHub
commit e9b6b6c421
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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