aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Feed.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-02-21 09:47:05 +0100
committerGravatar GitHub <noreply@github.com> 2024-02-21 09:47:05 +0100
commit84d88d4b5dbd12130344a02fa8dd2cfb2b55b96a (patch)
tree49983be2dc91121fce1b1cb9da31bec9cddd2333 /app/Models/Feed.php
parent3eb3574b1328a4172142a50b2a344413b7910d44 (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.php3
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;
}