Why not show full name even if it matches the sanitized username?


(Steven Slade) #1

Currently, as per the following line of code in the poster-name widget, the username is shown instead of the full name if the username equals the full name:

I have the site setting display_name_on_posts enabled, which should tell Discourse, displaying the full name is top priority for me. However if the user’s username is john_smith and their full name is John Smith, it shows john_smith on their post.

I think that the opposite should be true: if sanitizeName(name) === sanitizeName(username) then show span.full-name.