mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 23:24:10 +08:00
FIX: StaticController#favicon
reads from disk when using local store. (#7160)
Since uploads site settings are now backed by an actual upload, we don't have to reach over the network just to fetch the favicon. Instead, we can just read the upload directly from disk.
This commit is contained in:
@ -62,10 +62,7 @@ const Discourse = Ember.Application.extend({
|
||||
@observes("notifyCount")
|
||||
faviconChanged() {
|
||||
if (Discourse.User.currentProp("dynamic_favicon")) {
|
||||
let url = Discourse.SiteSettings.site_favicon_url;
|
||||
if (/^http/.test(url)) {
|
||||
url = Discourse.getURL("/favicon/proxied?" + encodeURIComponent(url));
|
||||
}
|
||||
const url = Discourse.getURL("/favicon/proxied");
|
||||
new window.Favcount(url).set(this.get("notifyCount"));
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user