diff options
author | Andrew Dolgov <[email protected]> | 2022-11-24 23:31:33 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-11-24 23:31:33 +0300 |
commit | a30b9bb649d6e10a5d7c2feb73376669cf23ef68 (patch) | |
tree | 33716caf2286a0c544a2f053ea07c677aebd5fd4 /js | |
parent | be6bc72a742c5fb7f87a4495009ed71ff0fbb8d8 (diff) |
rework favicon storage to use DiskCache
Diffstat (limited to 'js')
-rw-r--r-- | js/Feeds.js | 6 |
1 files changed, 4 insertions, 2 deletions
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 ? - `<img class="icon" src="${App.escapeHtml(App.getInitParam("icons_url"))}/${feed_id}.ico">` : + `<img class="icon" src="${App.escapeHtml(icon_url)}">` : `<i class='icon-no-feed material-icons'>rss_feed</i>`; } }; |