From a30b9bb649d6e10a5d7c2feb73376669cf23ef68 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 24 Nov 2022 23:31:33 +0300 Subject: rework favicon storage to use DiskCache --- js/Feeds.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'js/Feeds.js') diff --git a/js/Feeds.js b/js/Feeds.js index 714eb77d2..b3913b1f0 100644 --- a/js/Feeds.js +++ b/js/Feeds.js @@ -100,7 +100,7 @@ const Feeds = { if (id > 0) { if (has_img) { this.setIcon(id, false, - App.getInitParam("icons_url") + "/" + id + ".ico?" + has_img); + App.getInitParam("icons_url") + '?' + dojo.objectToQuery({op: 'feed_icon', id: id})); } else { this.setIcon(id, false, 'images/blank_icon.gif'); } @@ -678,8 +678,10 @@ const Feeds = { }); }, renderIcon: function(feed_id, exists) { + const icon_url = App.getInitParam("icons_url") + '?' + dojo.objectToQuery({op: 'feed_icon', id: feed_id}); + return feed_id && exists ? - `` : + `` : `rss_feed`; } }; -- cgit v1.2.3