Skip to content

Commit ec39805

Browse files
committed
fix(psalm): Adapt unified sharing to new non-deprecated API
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
1 parent fb95ffc commit ec39805

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

lib/unstable/Sharing/Recipient/AShareRecipientTypeSearchCollaborator.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,7 @@ public function searchRecipients(ShareAccessContext $accessContext, string $quer
6868

6969
// TODO: Maybe enable lookup?
7070
// TODO: Maybe merge search requests from different recipient types backed by the collaborators API.
71-
[$searchResults] = $this->getSearch()->search($query, [$this->getCollaboratorType()], false, $limit, $offset);
72-
if (!is_array($searchResults)) {
73-
return [];
74-
}
71+
[$searchResults] = $this->getSearch()->filteredSearch($query, [$this->getCollaboratorType()], false, 'unified-sharing', null, $limit, $offset);
7572

7673
$results = [];
7774
if (($exactResults = $searchResults['exact']) !== null) {

0 commit comments

Comments
 (0)