1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 06:35:55 +00:00

render feed icon markup on the client

This commit is contained in:
Andrew Dolgov
2021-02-19 17:40:11 +03:00
parent d445530fa0
commit 737cffc241
3 changed files with 10 additions and 8 deletions

View File

@@ -298,11 +298,7 @@ class Feeds extends Handler_Protected {
$this->_mark_timestamp(" tags");
if (self::_has_icon($feed_id)) {
$line['feed_icon'] = "<img class=\"icon\" src=\"".ICONS_URL."/$feed_id.ico\" alt=\"\">";
} else {
$line['feed_icon'] = "<i class='icon-no-feed material-icons'>rss_feed</i>";
}
$line['has_icon'] = self::_has_icon($feed_id);
//setting feed headline background color, needs to change text color based on dark/light
$fav_color = $line['favicon_avg_color'] ?? false;