FIX: smarter suppression of name

match on lowercase, trim.
This commit is contained in:
Sam 2014-07-03 11:20:58 +10:00
parent 554e5c8482
commit 6d8200b1b1

View file

@ -28,7 +28,7 @@ var PosterNameComponent = Em.Component.extend({
buffer.push("</span>");
// Are we showing full names?
if (name && (name !== username) && this.get('displayNameOnPosts')) {
if (name && (name.toLowerCase().trim() !== username.toLowerCase().trim()) && this.get('displayNameOnPosts')) {
name = Handlebars.Utils.escapeExpression(name);
buffer.push("<span class='full-name'><a href='#'>" + name + "</a></span>");
}