diff options
| author | 2022-05-13 23:14:09 +0200 | |
|---|---|---|
| committer | 2022-05-13 23:14:09 +0200 | |
| commit | 7f0c378482e81972e448bfbce1ae44ffd5935501 (patch) | |
| tree | a6eab672588e310c7866f96aa565995755d4f737 /app/Models | |
| parent | 6e369e83bc136eb61058eadf60d561a477ec2eb8 (diff) | |
Fix favicons update (#4358)
Better update the favicons when the URL changes
Diffstat (limited to 'app/Models')
| -rw-r--r-- | app/Models/Feed.php | 2 |
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) { |
