mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 20:54:00 -06: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
@ -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 New Issue
Block a user