]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Contact.php
Issue 7418: connections to forums should now work again
[friendica.git] / src / Model / Contact.php
index a30cd39baf093c37fdb0853e0d7195b2aca035ac..76c9cd01692f590760395616640682e3d4af3c4b 100644 (file)
@@ -1457,6 +1457,7 @@ class Contact extends BaseObject
 
                if (DBA::isResult($contact)) {
                        $contact_id = $contact["id"];
+                       $update_contact = false;
 
                        // Update the contact every 7 days (Don't update mail or feed contacts)
                        if (in_array($contact['network'], Protocol::FEDERATED)) {
@@ -1477,8 +1478,6 @@ class Contact extends BaseObject
                                if (DBA::isResult($mailcontact)) {
                                        DBA::update('contact', $mailcontact, ['id' => $contact_id]);
                                }
-
-                               $update_contact = false;
                        }
 
                        // Update the contact in the background if needed but it is called by the frontend
@@ -2333,7 +2332,7 @@ class Contact extends BaseObject
                        $apcontact = APContact::getByURL($url, false);
                        if (isset($apcontact['manually-approve'])) {
                                $pending = (bool)$apcontact['manually-approve'];
-                       }                       
+                       }
                }
 
                if (in_array($protocol, [Protocol::MAIL, Protocol::DIASPORA, Protocol::ACTIVITYPUB])) {