Skip to content

Commit e9b6b6c

Browse files
authored
Merge pull request #33604 from nextcloud/search-shared-post-process-filter-24
[24] further pre-filter search result before setting up share source cache
2 parents b290a6d + d9f73d8 commit e9b6b6c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

apps/files_sharing/lib/Cache.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,4 +196,12 @@ public function getQueryFilterForStorage(): ISearchOperator {
196196
]
197197
);
198198
}
199+
200+
public function getCacheEntryFromSearchResult(ICacheEntry $rawEntry): ?ICacheEntry {
201+
if ($rawEntry->getStorageId() === $this->getNumericStorageId()) {
202+
return parent::getCacheEntryFromSearchResult($rawEntry);
203+
} else {
204+
return null;
205+
}
206+
}
199207
}

0 commit comments

Comments
 (0)