]> git.mxchange.org Git - friendica.git/commitdiff
Don't probe feeds so often
authorMichael <heluecht@pirati.ca>
Sun, 22 Nov 2020 14:56:38 +0000 (14:56 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 22 Nov 2020 14:56:38 +0000 (14:56 +0000)
src/Worker/OnePoll.php

index b0e8460f29841632c0bf6582eb864a5315cc4871..73971a8b1b59f8b81bdf7f47accc265106cf59f5 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 (!in_array($contact['network'], [Protocol::MAIL, Protocol::FEED]) || ($force && ($contact['network'] == Protocol::FEED))) {
                        $success = Contact::updateFromProbe($contact_id);
                } else {
                        $success = true;