From: Michael Date: Sun, 2 Aug 2020 13:37:43 +0000 (+0000) Subject: Renamed function X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ff7b72cca34c0d2b83053a1517fcdf16f10909e2;p=friendica.git Renamed function --- diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 325183e10b..b6b0fec5d9 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -3062,7 +3062,7 @@ class Contact * @param array $urls * @return array result "count", "added" and "updated" */ - public static function addContactsByArray(array $urls) + public static function addByUrls(array $urls) { $added = 0; $updated = 0; diff --git a/src/Worker/PullDirectory.php b/src/Worker/PullDirectory.php index 250496009d..625431518d 100644 --- a/src/Worker/PullDirectory.php +++ b/src/Worker/PullDirectory.php @@ -60,7 +60,7 @@ class PullDirectory return; } - $result = Contact::addContactsByArray($contacts['results']); + $result = Contact::addByUrls($contacts['results']); $now = $contacts['now'] ?? 0; DI::config()->set('system', 'last-directory-sync', $now); diff --git a/src/Worker/UpdateServerDirectory.php b/src/Worker/UpdateServerDirectory.php index fe4b9f9162..dd94aa52c7 100644 --- a/src/Worker/UpdateServerDirectory.php +++ b/src/Worker/UpdateServerDirectory.php @@ -71,7 +71,7 @@ class UpdateServerDirectory } } - $result = Contact::addContactsByArray($urls); + $result = Contact::addByUrls($urls); Logger::info('PoCo discovery ended', ['count' => $result['count'], 'added' => $result['added'], 'updated' => $result['updated'], 'poco' => $gserver['poco']]); } @@ -99,7 +99,7 @@ class UpdateServerDirectory } } - $result = Contact::addContactsByArray($urls); + $result = Contact::addByUrls($urls); Logger::info('Account discovery ended', ['count' => $result['count'], 'added' => $result['added'], 'updated' => $result['updated'], 'url' => $gserver['url']]); }