mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Add username template variables to Welcome User email template (#20352)
* Add username and name_or_username variables to SystemMessage defaults * Allow username and name variables on welcome_user email template overrides * Satisfy linting * Add test
This commit is contained in:
committed by
GitHub
parent
9519747a01
commit
6fa9a8990d
@@ -88,6 +88,8 @@ class SystemMessage
|
||||
{
|
||||
site_name: SiteSetting.title,
|
||||
username: @recipient.username,
|
||||
name: @recipient.name,
|
||||
name_or_username: @recipient.name.presence || @recipient.username,
|
||||
user_preferences_url: "#{@recipient.full_url}/preferences",
|
||||
new_user_tips:
|
||||
I18n.with_locale(@recipient.effective_locale) do
|
||||
|
||||
Reference in New Issue
Block a user