]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/OnePoll.php
version 2021.03-dev
[friendica.git] / src / Worker / OnePoll.php
index b0e8460f29841632c0bf6582eb864a5315cc4871..bb3dd97198fe5dde383f6c1436beae935ea23fb1 100644 (file)
@@ -54,7 +54,9 @@ class OnePoll
                        return;
                }
 
-               if ($contact['network'] != Protocol::MAIL) {
+               // We never probe mail contacts since their probing demands a mail from the contact in the inbox.
+               // We don't probe feed accounts by default since they are polled in a higher frequency, but forced probes are okay.
+               if ($force && ($contact['network'] == Protocol::FEED)) {
                        $success = Contact::updateFromProbe($contact_id);
                } else {
                        $success = true;