Skip to content

A free, self-hostable news aggregator…

Improve TTL+muted logic (#6115)

Alexandre Alapetite84d88d4b5dbd
diff --git a/app/Models/Feed.php b/app/Models/Feed.php
index 1de8258e8..2eab0a3cf 100644
--- a/app/Models/Feed.php
+++ b/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;
}