mirror of
https://github.com/friendica/friendica
synced 2024-11-19 11:03:40 +00:00
Merge pull request #7113 from annando/update-ap
Update every AP contact once a week
This commit is contained in:
commit
385febde6d
1 changed files with 2 additions and 2 deletions
|
@ -213,8 +213,8 @@ class Cron
|
||||||
$contact['priority'] = (!is_null($poll_interval) ? intval($poll_interval) : 3);
|
$contact['priority'] = (!is_null($poll_interval) ? intval($poll_interval) : 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check Diaspora contacts or followers once a week
|
// Check ActivityPub and Diaspora contacts or followers once a week
|
||||||
if (($contact["network"] == Protocol::DIASPORA) || ($contact["rel"] == Contact::FOLLOWER)) {
|
if (in_array($contact["network"], [Protocol::ACTIVITYPUB, Protocol::DIASPORA]) || ($contact["rel"] == Contact::FOLLOWER)) {
|
||||||
$contact['priority'] = 4;
|
$contact['priority'] = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue