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:
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…
C’est particulièrement déroutant lors de l’édition des modèles d’e-mails pour les invitations : je pensais que %{invitee_name} insérerait le nom de la personne que j’invitais, alors j’ai modifié les phrases en conséquence, mais les invitations n’avaient plus aucun sens car %{invitee_name} insérait en réalité le nom d’utilisateur de la personne qui a créé l’invitation.
Je soutiendrais l’auteur de ce sujet qui a suggéré d’utiliser le nom complet s’il est disponible, plutôt que le nom d’utilisateur, qui peut parfois être opaque pour le nouvel utilisateur.
Mais nous devons absolument changer %{invitee_name} en %{inviter_name} car c’est extrêmement déroutant et inexact. Je pourrais peut-être m’en charger moi-même, donc si cela vous intéresse, je ferai une pull request.
If the invite said codinghorror only and I knew Jeff personally I might not have any idea who codinghorror was and be reluctant to accept the invite.
If the invite said Jeff only and I knew Jeff personally I would be more likely to accept the invite, but I might not know that his member name was codinghorror.