Skip to content

Commit

Permalink
Merge pull request #33575 from nextcloud/search-shared-post-process-f…
Browse files Browse the repository at this point in the history
…ilter

further pre-filter search result before setting up share source cache
  • Loading branch information
CarlSchwan authored Aug 18, 2022
2 parents ac970e5 + b731c95 commit cab0f13
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/files_sharing/lib/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,4 +197,12 @@ public function getQueryFilterForStorage(): ISearchOperator {
]
);
}

public function getCacheEntryFromSearchResult(ICacheEntry $rawEntry): ?ICacheEntry {
if ($rawEntry->getStorageId() === $this->getNumericStorageId()) {
return parent::getCacheEntryFromSearchResult($rawEntry);
} else {
return null;
}
}
}

0 comments on commit cab0f13

Please # to comment.