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/Controllers/feedController.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'app/Controllers') diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.php index 758f39c88..4788f9639 100755 --- a/app/Controllers/feedController.php +++ b/app/Controllers/feedController.php @@ -540,12 +540,15 @@ class FreshRSS_feed_Controller extends FreshRSS_ActionController { } if (trim($feed->website()) == '') { $website = html_only_entity_decode($simplePie->get_link()); - $feedProperties['website'] = $website == '' ? $feed->url() : $website; + $feed->_website($website == '' ? $feed->url() : $website); + $feedProperties['website'] = $feed->website(); + $feed->faviconPrepare(); } if (trim($feed->description()) == '') { $description = html_only_entity_decode($simplePie->get_description()); if ($description != '') { - $feedProperties['description'] = $description; + $feed->_description($description); + $feedProperties['description'] = $feed->description(); } } } -- cgit v1.2.3