summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2021-12-13 15:36:45 +0100
committerLouis Chemineau <louis@chmn.me>2021-12-13 15:36:45 +0100
commit565da24b4f9e99f709da500e4e0b31952f2eb515 (patch)
treeac4f0da72df5482bbfdd5c3a4e3df4b77ea9c296
parent846929b90d8d3d2aa668440461a3da06a089b39a (diff)
downloadnextcloud-server-565da24b4f9e99f709da500e4e0b31952f2eb515.tar.gz
nextcloud-server-565da24b4f9e99f709da500e4e0b31952f2eb515.zip
Fix backport
Signed-off-by: Louis Chemineau <louis@chmn.me>
-rw-r--r--lib/private/Contacts/ContactsMenu/ContactsStore.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Contacts/ContactsMenu/ContactsStore.php b/lib/private/Contacts/ContactsMenu/ContactsStore.php
index 5aa2c5ab1aa..94531d2bf55 100644
--- a/lib/private/Contacts/ContactsMenu/ContactsStore.php
+++ b/lib/private/Contacts/ContactsMenu/ContactsStore.php
@@ -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;
});