Skip to content

Commit

Permalink
fix(contactsintegration): Limit number of search results
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
ChristophWurst committed Nov 5, 2024
1 parent 4ef0492 commit b02921e
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,

Check warning on line 231 in lib/Service/ContactsIntegration.php

View check run for this annotation

Codecov / codecov/patch

lib/Service/ContactsIntegration.php#L230-L231

Added lines #L230 - L231 were not covered by tests
]);
$matches = [];
foreach ($result as $r) {
Expand Down

0 comments on commit b02921e

Please sign in to comment.