mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
Fix backport
Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
parent
846929b90d
commit
565da24b4f
1 changed files with 3 additions and 1 deletions
|
|
@ -247,7 +247,9 @@ class ContactsStore implements IContactsStore {
|
|||
}
|
||||
|
||||
$userId = $user->getUID();
|
||||
$allContacts = $this->contactsManager->search($shareWith, $filter);
|
||||
$allContacts = $this->contactsManager->search($shareWith, $filter, [
|
||||
'strict_search' => true,
|
||||
]);
|
||||
$contacts = array_filter($allContacts, function ($contact) use ($userId) {
|
||||
return $contact['UID'] !== $userId;
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue