summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorcall-me-matt <nextcloud@matthiasheinisch.de>2020-09-05 10:52:03 +0200
committercall-me-matt <nextcloud@matthiasheinisch.de>2020-09-05 10:52:03 +0200
commit33a53fc732e9f65bf37d162cc449ef80ab122303 (patch)
tree19fea204e4ed044f7f4a9a9a2d6dff14aec54307 /lib
parent81b3885cb3bdac9b57ded6a317ed0adbd1845fc3 (diff)
do not wait for nextcloud/server#22085
Signed-off-by: call-me-matt <nextcloud@matthiasheinisch.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/Service/SocialApiService.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Service/SocialApiService.php b/lib/Service/SocialApiService.php
index 51750e5c..1791cdfe 100644
--- a/lib/Service/SocialApiService.php
+++ b/lib/Service/SocialApiService.php
@@ -333,12 +333,16 @@ class SocialApiService {
}
// get contacts in that addressbook
+ //TODO: activate this optimization when nextcloud/server#22085 is merged
+ /*
if (Util::getVersion()[0] < 21) {
//TODO: remove this branch when dependency for contacts is min NCv21 (see info.xml)
$contacts = $addressBook->search('', ['UID'], ['types' => true]);
} else {
$contacts = $addressBook->search('', ['X-SOCIALPROFILE'], ['types' => true]);
}
+ */
+ $contacts = $addressBook->search('', ['UID'], ['types' => true]);
usort($contacts, [$this, 'sortContacts']); // make sure the order stays the same in consecutive calls
// update one contact after another