mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
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:
commit
e9b6b6c421
1 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue