aboutsummaryrefslogtreecommitdiff
path: root/app/Models
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2022-05-13 23:14:09 +0200
committerGravatar GitHub <noreply@github.com> 2022-05-13 23:14:09 +0200
commit7f0c378482e81972e448bfbce1ae44ffd5935501 (patch)
treea6eab672588e310c7866f96aa565995755d4f737 /app/Models
parent6e369e83bc136eb61058eadf60d561a477ec2eb8 (diff)
Fix favicons update (#4358)
Better update the favicons when the URL changes
Diffstat (limited to 'app/Models')
-rw-r--r--app/Models/Feed.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Models/Feed.php b/app/Models/Feed.php
index b5b6fdfd8..b3692acbe 100644
--- a/app/Models/Feed.php
+++ b/app/Models/Feed.php
@@ -208,7 +208,7 @@ class FreshRSS_Feed extends Minz_Model {
$url = $this->url;
}
$txt = FAVICONS_DIR . $this->hash() . '.txt';
- if (!file_exists($txt)) {
+ if (@file_get_contents($txt) !== $url) {
file_put_contents($txt, $url);
}
if (FreshRSS_Context::$isCli) {