mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: smarter suppression of name
match on lowercase, trim.
This commit is contained in:
parent
554e5c8482
commit
6d8200b1b1
1 changed files with 1 additions and 1 deletions
|
@ -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>");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue