mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Some failing specs
This commit is contained in:
@@ -61,7 +61,7 @@ Discourse.Utilities = {
|
||||
var url = Discourse.Utilities.avatarUrl(options.username, options.size, options.avatarTemplate);
|
||||
|
||||
// We won't render an invalid url
|
||||
if (Em.isEmpty(url)) { return ""; }
|
||||
if (!url || url.length === 0) { return ""; }
|
||||
|
||||
var classes = "avatar" + (options.extraClasses ? " " + options.extraClasses : "");
|
||||
var title = (options.title) ? " title='" + Handlebars.Utils.escapeExpression(options.title || "") + "'" : "";
|
||||
|
||||
Reference in New Issue
Block a user