Don't probe feeds so often

This commit is contained in:
Michael 2020-11-22 14:56:38 +00:00
parent 3ffd40c7da
commit 7bdf22a0d5

View 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;