From c46a9595cde74075788b42a0786985b1584bdd27 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 6 May 2019 20:28:40 +0000 Subject: [PATCH] Update every AP contact once a week --- src/Worker/Cron.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Worker/Cron.php b/src/Worker/Cron.php index 75a6415631..ed925bde9b 100644 --- a/src/Worker/Cron.php +++ b/src/Worker/Cron.php @@ -213,8 +213,8 @@ class Cron $contact['priority'] = (!is_null($poll_interval) ? intval($poll_interval) : 3); } - // Check Diaspora contacts or followers once a week - if (($contact["network"] == Protocol::DIASPORA) || ($contact["rel"] == Contact::FOLLOWER)) { + // Check ActivityPub and Diaspora contacts or followers once a week + if (in_array($contact["network"], [Protocol::ACTIVITYPUB, Protocol::DIASPORA]) || ($contact["rel"] == Contact::FOLLOWER)) { $contact['priority'] = 4; } -- 2.39.5