# Render %{invitee\_name} as full name only

**URL:** <https://meta.discourse.org/t/render-invitee-name-as-full-name-only/62412>\
**Category:** UX\
**Created:** [10. Mai 2017 um 09:00 UTC](https://meta.discourse.org/t/render-invitee-name-as-full-name-only/62412 "2017-05-10T09:00:30Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)\
**Post date:** [10. Mai 2017 um 09:00 UTC](https://meta.discourse.org/t/render-invitee-name-as-full-name-only/62412/1 "2017-05-10T09:00:30Z")

</div>

When usernames are derived from emails (especially work emails), they often are very similar to the users real name. If the user has set their real name (and if real names are not hidden via site settings) this currently results in invite emails starting like this

> John Doe (doe) invited you to join

As far as I can tell without any knowledge of ruby, this is where the `John Doe (doe)` part gets rendered:

> <https://github.com/discourse/discourse/blob/2efe0442bf52ad4595e4a290ef24edea4fcbe20b/app/mailers/invite_mailer.rb#L15-L19>

I don’t see the benefit of mentioning the username at all if the real name is available. After all, you are inviting someone who is not yet a member (most of the time at least) and hence can’t relate to the username anyway. So I would like to change line 18 to

```
  invitee_name = "#{invite.invited_by.name}"

```

but I don’t know how to achieve this on my site and I’m also hesitant to fiddle with the core code. Is this a change that would make sense for the core? If not, could someone give me some hints how to make that change locally while maintaining upgradability?

BTW: why is the variable called `invitee_name` when “invitee” commonly designates the invited person, not the inviting person?

* * *

So, just to understand things better, does what I’m trying to do imply forking Discourse? I hope there is a simpler way for making such a minor change…

---

_[View the full topic](https://meta.discourse.org/t/render-invitee-name-as-full-name-only/62412)._
