Procházet zdrojové kódy

Merge pull request #1845 from Alkarex/fix-muted

Fix mute feeds
Alexandre Alapetite před 8 roky
rodič
revize
633350566e
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      app/Controllers/feedController.php

+ 2 - 2
app/Controllers/feedController.php

@@ -284,10 +284,10 @@ class FreshRSS_feed_Controller extends Minz_ActionController {
 			}
 			}
 
 
 			$mtime = 0;
 			$mtime = 0;
-			$ttl = $feed->ttl();
-			if ($ttl < FreshRSS_Feed::TTL_DEFAULT) {
+			if ($feed->mute()) {
 				continue;	//Feed refresh is disabled
 				continue;	//Feed refresh is disabled
 			}
 			}
+			$ttl = $feed->ttl();
 			if ((!$simplePiePush) && (!$feed_id) &&
 			if ((!$simplePiePush) && (!$feed_id) &&
 				($feed->lastUpdate() + 10 >= time() - ($ttl == FreshRSS_Feed::TTL_DEFAULT ? FreshRSS_Context::$user_conf->ttl_default : $ttl))) {
 				($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
 				//Too early to refresh from source, but check whether the feed was updated by another user