From 16d4d5185ed653c7f4b2dadf7a143eecc42352a0 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 25 Mar 2018 10:34:46 +0200 Subject: Fix mute feeds https://github.com/FreshRSS/FreshRSS/issues/1844 --- app/Controllers/feedController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Controllers') diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.php index af732951f..59c22b777 100755 --- a/app/Controllers/feedController.php +++ b/app/Controllers/feedController.php @@ -284,10 +284,10 @@ class FreshRSS_feed_Controller extends Minz_ActionController { } $mtime = 0; - $ttl = $feed->ttl(); - if ($ttl < FreshRSS_Feed::TTL_DEFAULT) { + if ($feed->mute()) { continue; //Feed refresh is disabled } + $ttl = $feed->ttl(); if ((!$simplePiePush) && (!$feed_id) && ($feed->lastUpdate() + 10 >= time() - ($ttl == FreshRSS_Feed::TTL_DEFAULT ? FreshRSS_Context::$user_conf->ttl_default : $ttl))) { //Too early to refresh from source, but check whether the feed was updated by another user -- cgit v1.2.3