diff options
author | Joas Schilling <coding@schilljs.com> | 2021-12-08 19:26:30 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-12-08 20:58:54 +0300 |
commit | d49ad7ea47e35a463e4953c9922a5af77ff7acf2 (patch) | |
tree | e31d876e995cf616597dea237c92a1e1aeef1f10 /apps/files | |
parent | 0f1670be8a1fa25ebab9b5d7bdf074adf1587e4d (diff) |
Limit more contact searches
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/lib/Activity/Provider.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files/lib/Activity/Provider.php b/apps/files/lib/Activity/Provider.php index 8f3a5a4f417..a7db85a0de1 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; |