diff options
author | call-me-matt <nextcloud@matthiasheinisch.de> | 2020-09-05 11:52:03 +0300 |
---|---|---|
committer | call-me-matt <nextcloud@matthiasheinisch.de> | 2020-09-05 11:52:03 +0300 |
commit | 33a53fc732e9f65bf37d162cc449ef80ab122303 (patch) | |
tree | 19fea204e4ed044f7f4a9a9a2d6dff14aec54307 /lib/Service | |
parent | 81b3885cb3bdac9b57ded6a317ed0adbd1845fc3 (diff) |
do not wait for nextcloud/server#22085
Signed-off-by: call-me-matt <nextcloud@matthiasheinisch.de>
Diffstat (limited to 'lib/Service')
-rw-r--r-- | lib/Service/SocialApiService.php | 4 |
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 |