Skip to content

Commit

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

[24] further pre-filter search result before setting up share source cache
  • Loading branch information
PVince81 authored Aug 26, 2022
2 parents b290a6d + d9f73d8 commit e9b6b6c
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 @@ -196,4 +196,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 e9b6b6c

Please sign in to comment.