mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-07-19 03:23:11 -04:00
Fix favicons update (#4358)
Better update the favicons when the URL changes
This commit is contained in:
committed by
GitHub
parent
6e369e83bc
commit
7f0c378482
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user