mirror of
https://github.com/discourse/discourse.git
synced 2025-04-17 17:29:04 +08:00
FIX: smarter suppression of name
match on lowercase, trim.
This commit is contained in:
parent
554e5c8482
commit
6d8200b1b1
@ -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…
x
Reference in New Issue
Block a user