mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
Merge pull request #3172 from techAPJ/patch-1
FIX: check for full name in invite email subject
This commit is contained in:
commit
d0b83c6fb2
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ class InviteMailer < ActionMailer::Base
|
|||
|
||||
# get invitee name (based on site setting)
|
||||
invitee_name = invite.invited_by.username
|
||||
if (SiteSetting.enable_names)
|
||||
if SiteSetting.enable_names && invite.invited_by.name.present?
|
||||
invitee_name = "#{invite.invited_by.name} (#{invite.invited_by.username})"
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue