Why only some replies show fullname while others not?

AI-generated summary

j3ang is experiencing an issue where only some replies on their Discourse site show the full name next to the username, despite having both fields enabled. isaac requests examples for context, and pfaffman suggests that if the username and full name are the same, it doesn’t display both. (pfaffman later confirms this is a feature, as seen in isaac’s case.

j3ang provides screenshots of their site settings and how it displays with and without the “prioritize username in ux” setting enabled. pfaffman also shares a theme component that can be used to override this feature. j3ang asks for help with a related topic, but later finds the solution themselves in the comments embeds template.

I enabled to show full name next to the username.
but only some answer/reply posts are showing both full name and username even when they do have both fields? The inconsistency is bugging me. Any ideas why?

Hey @j3ang :slight_smile:

Could you add a few examples for context? It would be helpful to narrow down the inconsistencies.

If the username and their full name are the same it doesn’t dispay both. Would that explain it?

I thought that there was a “be noisy if username and real name match” site setting, but I can’t find it.

Hi @isaac ,

My settings are as following:


CleanShot 2022-06-21 at 12.04.08

On my site it would display as:

but if I enabled the prioritize username in ux
it would show like so:

What do you have for the prioritize username in ux setting?

(EDIT: Or perhaps your last post you were further explaining my answer…)

Isaac’s username is not displayed because it is the same as his name:

It’s a feature. :wink:

You can override it with a theme component, it seems:

https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/lib/plugin-api.js#L664-L672

I see! Thanks.
Would you be able to help me with this topic as well? How to display full name in comments embeds

Ah never mind. I found the views template: /var/www/discourse/app/views/embed/comments.html.erb