mirror of
https://github.com/friendica/friendica
synced 2024-12-23 00:00:21 +00:00
Don't probe feeds so often
This commit is contained in:
parent
3ffd40c7da
commit
7bdf22a0d5
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue