mirror of
https://github.com/discourse/discourse.git
synced 2025-07-13 23:59:26 +08:00
FIX: smarter suppression of name
match on lowercase, trim.
This commit is contained in:
@ -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>");
|
||||
}
|
||||
|
Reference in New Issue
Block a user