]> git.mxchange.org Git - friendica.git/commitdiff
Renamed function
authorMichael <heluecht@pirati.ca>
Sun, 2 Aug 2020 13:37:43 +0000 (13:37 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 2 Aug 2020 13:37:43 +0000 (13:37 +0000)
src/Model/Contact.php
src/Worker/PullDirectory.php
src/Worker/UpdateServerDirectory.php

index 325183e10b0d0f3c85af70b9daf7119b4f485052..b6b0fec5d93739fc4379f9c0c6a9a10501599480 100644 (file)
@@ -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;
index 250496009d27ad38a707b96a0c159fa4d85654d8..625431518d82d90920661ac7aa8a636ebe8526da 100644 (file)
@@ -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);
index fe4b9f916297a03c62a6b729c6e2fe146635d98d..dd94aa52c7a8555e17dbe2b9ba7c29127311aa6d 100644 (file)
@@ -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']]);
        }