]> git.mxchange.org Git - friendica.git/commitdiff
Don't update mail contacts when polling
authorMichael <heluecht@pirati.ca>
Sun, 19 Jan 2020 19:27:30 +0000 (19:27 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 19 Jan 2020 19:27:30 +0000 (19:27 +0000)
src/Worker/OnePoll.php

index afd5bc92b7d8c7d8f50990ae31e6091c7cdf8d63..534e1ce8aeb512ae7b0ac4cb7500a12eb5f50bc2 100644 (file)
@@ -38,7 +38,6 @@ class OnePoll
                        return;
                }
 
-               Contact::updateFromProbe($contact_id, '', $force);
 
                $contact = DBA::selectFirst('contact', [], ['id' => $contact_id]);
                if (!DBA::isResult($contact)) {
@@ -46,6 +45,10 @@ class OnePoll
                        return;
                }
 
+               if (($contact['network'] != Protocol::MAIL) || $force) {
+                       Contact::updateFromProbe($contact_id, '', $force);
+               }
+
                // Special treatment for wrongly detected local contacts
                if (!$force && ($contact['network'] != Protocol::DFRN) && Contact::isLocalById($contact_id)) {
                        Contact::updateFromProbe($contact_id, Protocol::DFRN, true);