diff options
| author | 2024-02-21 09:47:05 +0100 | |
|---|---|---|
| committer | 2024-02-21 09:47:05 +0100 | |
| commit | 84d88d4b5dbd12130344a02fa8dd2cfb2b55b96a (patch) | |
| tree | 49983be2dc91121fce1b1cb9da31bec9cddd2333 /app/Models/Feed.php | |
| parent | 3eb3574b1328a4172142a50b2a344413b7910d44 (diff) | |
Improve TTL+muted logic (#6115)
Fix https://github.com/FreshRSS/FreshRSS/issues/6111
Diffstat (limited to 'app/Models/Feed.php')
| -rw-r--r-- | app/Models/Feed.php | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |
