diff --git a/lib/Service/ContactsIntegration.php b/lib/Service/ContactsIntegration.php index da53a72b88..72ce7fdb86 100644 --- a/lib/Service/ContactsIntegration.php +++ b/lib/Service/ContactsIntegration.php @@ -58,7 +58,15 @@ public function getMatchingRecipient(string $userId, string $term): array { $shareeEnumerationFullMatchUserId = $shareeEnumerationFullMatch && $this->config->getAppValue('core', 'shareapi_restrict_user_enumeration_full_match_userid', 'yes') === 'yes'; $shareeEnumerationFullMatchEmail = $shareeEnumerationFullMatch && $this->config->getAppValue('core', 'shareapi_restrict_user_enumeration_full_match_email', 'yes') === 'yes'; - $result = $this->contactsManager->search($term, ['UID', 'FN', 'EMAIL'], ['enumeration' => $shareeEnumeration, 'fullmatch' => $shareeEnumerationFullMatch]); +/ $result = $this->contactsManager->search( + $term, + ['UID', 'FN', 'EMAIL'], + [ + 'enumeration' => $shareeEnumeration, + 'fullmatch' => $shareeEnumerationFullMatch, + 'limit' => 20, + ], + ); if (empty($result)) { return []; }