summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-12-08 17:26:30 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-12-13 14:26:22 +0000
commit749935e91bdc74c7bf0f78107eecf754c831a200 (patch)
tree3d8d686b131f7e8b7c944a493f2595f74fd609eb /apps/files/lib
parent448ee8e30de63d6af679d2b43e198a87720e24fe (diff)
downloadnextcloud-server-749935e91bdc74c7bf0f78107eecf754c831a200.tar.gz
nextcloud-server-749935e91bdc74c7bf0f78107eecf754c831a200.zip
Limit more contact searches
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/Activity/Provider.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files/lib/Activity/Provider.php b/apps/files/lib/Activity/Provider.php
index f50d9d6a42a..6d5618c4128 100644
--- a/apps/files/lib/Activity/Provider.php
+++ b/apps/files/lib/Activity/Provider.php
@@ -560,7 +560,12 @@ class Provider implements IProvider {
return $this->displayNames[$search];
}
- $addressBookContacts = $this->contactsManager->search($search, ['CLOUD']);
+ $addressBookContacts = $this->contactsManager->search($search, ['CLOUD'], [
+ 'limit' => 1,
+ 'enumeration' => false,
+ 'fullmatch' => false,
+ 'strict_search' => true,
+ ]);
foreach ($addressBookContacts as $contact) {
if (isset($contact['isLocalSystemBook'])) {
continue;