]> git.mxchange.org Git - friendica.git/commitdiff
Update every AP contact once a week
authorMichael <heluecht@pirati.ca>
Mon, 6 May 2019 20:28:40 +0000 (20:28 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 6 May 2019 20:28:40 +0000 (20:28 +0000)
src/Worker/Cron.php

index 75a64156316f0d3cea4104b2adf0f6a2b1f129dc..ed925bde9b09a890d65c67e3e38319e4d5b80db4 100644 (file)
@@ -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;
                        }