]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/UpdateGContacts.php
Don't add contacts when not needed
[friendica.git] / src / Worker / UpdateGContacts.php
index 1d9d86bcf6871bdc43f15a15c6209d2c18bea5c1..edee112eef9c3cef467207a4f9742a69793d7042 100644 (file)
@@ -9,7 +9,7 @@ use Friendica\Core\Logger;
 use Friendica\Core\Protocol;
 use Friendica\Core\Worker;
 use Friendica\Database\DBA;
-use Friendica\Model\Contact;
+use Friendica\Model\GContact;
 use Friendica\Model\GServer;
 use Friendica\Util\DateTimeFormat;
 use Friendica\Util\Strings;
@@ -53,7 +53,7 @@ class UpdateGContacts
                                continue;
                        }
 
-                       $server_url = Contact::getBasepath($contact['url']);
+                       $server_url = GContact::getBasepath($contact['url'], true);
                        $force_update = false;
 
                        if (!empty($contact['server_url'])) {