FIX: use CDN for user avatars
This commit is contained in:
parent
4a7bf67778
commit
8109bd85c0
|
@ -44,7 +44,7 @@ Discourse.Utilities = {
|
||||||
|
|
||||||
var classes = "avatar" + (options.extraClasses ? " " + options.extraClasses : "");
|
var classes = "avatar" + (options.extraClasses ? " " + options.extraClasses : "");
|
||||||
var title = (options.title) ? " title='" + Handlebars.Utils.escapeExpression(options.title || "") + "'" : "";
|
var title = (options.title) ? " title='" + Handlebars.Utils.escapeExpression(options.title || "") + "'" : "";
|
||||||
return "<img alt='' width='" + size + "' height='" + size + "' src='" + url + "' class='" + classes + "'" + title + ">";
|
return "<img alt='' width='" + size + "' height='" + size + "' src='" + Discourse.getURLWithCDN(url) + "' class='" + classes + "'" + title + ">";
|
||||||
},
|
},
|
||||||
|
|
||||||
tinyAvatar: function(avatarTemplate, options) {
|
tinyAvatar: function(avatarTemplate, options) {
|
||||||
|
|
Loading…
Reference in New Issue