diff options
author | Joas Schilling <coding@schilljs.com> | 2021-12-08 19:26:30 +0300 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2021-12-13 17:23:04 +0300 |
commit | 3879c2eb1e2a9ee9698f3c26483b123125e4453d (patch) | |
tree | 0dd4af0c43f8556731736d3ba6f3d8c5441ff520 /apps/federatedfilesharing | |
parent | 1d7971bf41b289a8548c6dbe8a5303e663a4e88e (diff) |
Limit more contact searches
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/federatedfilesharing')
-rw-r--r-- | apps/federatedfilesharing/lib/Notifier.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/federatedfilesharing/lib/Notifier.php b/apps/federatedfilesharing/lib/Notifier.php index a551a3cca0c..7eabbba56fd 100644 --- a/apps/federatedfilesharing/lib/Notifier.php +++ b/apps/federatedfilesharing/lib/Notifier.php @@ -255,7 +255,12 @@ class Notifier implements INotifier { } } - $addressBookEntries = $this->contactsManager->search($federatedCloudId, ['CLOUD']); + $addressBookEntries = $this->contactsManager->search($federatedCloudId, ['CLOUD'], [ + 'limit' => 1, + 'enumeration' => false, + 'fullmatch' => false, + 'strict_search' => true, + ]); foreach ($addressBookEntries as $entry) { if (isset($entry['CLOUD'])) { foreach ($entry['CLOUD'] as $cloudID) { |