From 7f0c378482e81972e448bfbce1ae44ffd5935501 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 13 May 2022 23:14:09 +0200 Subject: Fix favicons update (#4358) Better update the favicons when the URL changes --- app/Models/Feed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Models') 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) { -- cgit v1.2.3