summaryrefslogtreecommitdiff
path: root/js/Feeds.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Feeds.js')
-rw-r--r--js/Feeds.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/js/Feeds.js b/js/Feeds.js
index 714eb77d2..42641dc74 100644
--- a/js/Feeds.js
+++ b/js/Feeds.js
@@ -71,7 +71,7 @@ const Feeds = {
const kind = elems[l].kind;
const ctr = parseInt(elems[l].counter);
const error = elems[l].error;
- const has_img = elems[l].has_img;
+ const ts = elems[l].ts;
const updated = elems[l].updated;
if (id == "global-unread") {
@@ -98,9 +98,9 @@ const Feeds = {
this.setValue(id, false, 'updated', updated);
if (id > 0) {
- if (has_img) {
+ if (ts) {
this.setIcon(id, false,
- App.getInitParam("icons_url") + "/" + id + ".ico?" + has_img);
+ App.getInitParam("icons_url") + '?' + dojo.objectToQuery({op: 'feed_icon', id: id, ts: ts}));
} 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>`;
}
};