]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Contact.php
Merge pull request #13124 from ne20002/develop
[friendica.git] / src / Model / Contact.php
index b06cbff875764ead6615b6b8194092bc5e881746..648193b09cc2749e3c6b762ab63c2732f334ffad 100644 (file)
@@ -2682,6 +2682,8 @@ class Contact
                        return true;
                }
 
+                $has_local_data = self::hasLocalData($id, $contact);
+
                $uid = $contact['uid'];
                unset($contact['uid']);
 
@@ -2702,9 +2704,7 @@ class Contact
 
                $updated = DateTimeFormat::utcNow();
 
-               $has_local_data = self::hasLocalData($id, $contact);
-
-               if (!Probe::isProbable($ret['network'])) {
+               if (!Probe::isProbable($ret['network']) && !Probe::isProbable($contact['network'])) {
                        // Periodical checks are only done on federated contacts
                        $failed_next_update  = null;
                        $success_next_update = null;