summaryrefslogtreecommitdiffstats
path: root/lib/private/Collaboration
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-12-08 17:26:30 +0100
committerJoas Schilling <coding@schilljs.com>2021-12-08 18:58:54 +0100
commitd49ad7ea47e35a463e4953c9922a5af77ff7acf2 (patch)
treee31d876e995cf616597dea237c92a1e1aeef1f10 /lib/private/Collaboration
parent0f1670be8a1fa25ebab9b5d7bdf074adf1587e4d (diff)
downloadnextcloud-server-d49ad7ea47e35a463e4953c9922a5af77ff7acf2.tar.gz
nextcloud-server-d49ad7ea47e35a463e4953c9922a5af77ff7acf2.zip
Limit more contact searches
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Collaboration')
-rw-r--r--lib/private/Collaboration/Collaborators/RemotePlugin.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/private/Collaboration/Collaborators/RemotePlugin.php b/lib/private/Collaboration/Collaborators/RemotePlugin.php
index 4fe62523b66..7d7a013a38c 100644
--- a/lib/private/Collaboration/Collaborators/RemotePlugin.php
+++ b/lib/private/Collaboration/Collaborators/RemotePlugin.php
@@ -67,7 +67,12 @@ class RemotePlugin implements ISearchPlugin {
$resultType = new SearchResultType('remotes');
// Search in contacts
- $addressBookContacts = $this->contactsManager->search($search, ['CLOUD', 'FN'], ['limit' => $limit, 'offset' => $offset]);
+ $addressBookContacts = $this->contactsManager->search($search, ['CLOUD', 'FN'], [
+ 'limit' => $limit,
+ 'offset' => $offset,
+ 'enumeration' => false,
+ 'fullmatch' => false,
+ ]);
foreach ($addressBookContacts as $contact) {
if (isset($contact['isLocalSystemBook'])) {
continue;