Skip to content

Commit

Permalink
Merge pull request #10321 from nextcloud/fix/contactsintegration/limi…
Browse files Browse the repository at this point in the history
…t-search-results

fix(contactsintegration): Limit number of search results
  • Loading branch information
ChristophWurst authored Nov 5, 2024
2 parents a73ca8b + b02921e commit 55259e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Service/ContactsIntegration.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ private function doSearch(string $term, array $fields, bool $strictSearch, bool
$allowSystemUsers = $this->config->getAppValue('core', 'shareapi_allow_share_dialog_user_enumeration', 'no') === 'yes';

$result = $this->contactsManager->search($term, $fields, [
'strict_search' => $strictSearch
'strict_search' => $strictSearch,
'limit' => 20,
]);
$matches = [];
foreach ($result as $r) {
Expand Down

0 comments on commit 55259e1

Please sign in to comment.