New welcome email (#28883)

Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
This commit is contained in:
HTeuMeuLeu 2024-03-01 13:16:53 +01:00 committed by GitHub
parent 3389c41b58
commit 934cab7508
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
102 changed files with 619 additions and 318 deletions

View file

@ -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