Kaynağa Gözat

Improve TTL+muted logic (#6115)

Fix https://github.com/FreshRSS/FreshRSS/issues/6111
Alexandre Alapetite 2 yıl önce
ebeveyn
işleme
84d88d4b5d
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      app/Models/Feed.php

+ 3 - 0
app/Models/Feed.php

@@ -189,6 +189,9 @@ class FreshRSS_Feed extends Minz_Model {
 			}
 			return $ttl * ($this->mute ? -1 : 1);
 		}
+		if ($this->mute && $this->ttl === FreshRSS_Context::userConf()->ttl_default) {
+			return FreshRSS_Feed::TTL_DEFAULT;
+		}
 		return $this->ttl;
 	}