]> git.mxchange.org Git - friendica.git/commitdiff
Removed check for number of posts
authorMichael <heluecht@pirati.ca>
Mon, 17 Aug 2020 05:26:40 +0000 (05:26 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 17 Aug 2020 05:26:40 +0000 (05:26 +0000)
src/Protocol/Feed.php

index 915d78ac397c0016309ff50a18eeb38e7be7a23f..9222d360579562bf06b6bf7d74130fe51358470f 100644 (file)
@@ -675,11 +675,6 @@ class Feed
                                $priority = 3; // Poll once a day
                        }
 
-                       if (empty($priority) && (($newest - $oldest) > count($creation_dates))) {
-                               Logger::info('Less than a post per day, switching to daily polling', ['posts' => count($creation_dates), 'oldest' => $oldest_date, 'newest' => $newest_date, 'id' => $contact['id'], 'uid' => $contact['uid'], 'url' => $contact['url']]);
-                               $priority = 3; // Poll once a day
-                       }
-
                        if (empty($priority)) {
                                // Calculate the highest "posts per day" value
                                $max = 1;