New welcome email (#28883)
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
This commit is contained in:
parent
3389c41b58
commit
934cab7508
102 changed files with 619 additions and 318 deletions
|
@ -135,6 +135,12 @@ class UserMailer < Devise::Mailer
|
|||
|
||||
return unless @resource.active_for_authentication?
|
||||
|
||||
@suggestions = AccountSuggestions.new(@resource.account).get(5)
|
||||
@tags = Trends.tags.query.allowed.limit(5)
|
||||
@has_account_fields = @resource.account.display_name.present? || @resource.account.note.present? || @resource.account.avatar.present?
|
||||
@has_active_relationships = @resource.account.active_relationships.exists?
|
||||
@has_statuses = @resource.account.statuses.exists?
|
||||
|
||||
I18n.with_locale(locale) do
|
||||
mail subject: default_i18n_subject
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue