1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-03 16:49:14 +00:00

wip: flavor icon caching

This commit is contained in:
Andrew Dolgov
2021-03-15 22:29:03 +03:00
parent 1870fe172b
commit 77924a6286
12 changed files with 108 additions and 32 deletions

View File

@@ -228,6 +228,17 @@ class Feeds extends Handler_Protected {
$this->_mark_timestamp(" labels");
if ($line["tag_cache"])
$tags = explode(",", $line["tag_cache"]);
else
$tags = [];
$line["tags"] = $tags;
//$line["tags"] = Article::_get_tags($line["id"], false, $line["tag_cache"]);
$this->_mark_timestamp(" tags");
$line["feed_title"] = $line["feed_title"] ?? "";
$line["buttons_left"] = "";
@@ -282,17 +293,6 @@ class Feeds extends Handler_Protected {
$this->_mark_timestamp(" local-datetime");
if ($line["tag_cache"])
$tags = explode(",", $line["tag_cache"]);
else
$tags = [];
$line["tags"] = $tags;
//$line["tags"] = Article::_get_tags($line["id"], false, $line["tag_cache"]);
$this->_mark_timestamp(" tags");
$line['has_icon'] = self::_has_icon($feed_id);
//setting feed headline background color, needs to change text color based on dark/light