Fix missing localization of inactive user removal warning emails.

Fixes #5950
This commit is contained in:
Jason Robinson 2015-05-12 22:19:00 +03:00 committed by Dennis Schubert
parent aec2467e98
commit ce16a122fc
2 changed files with 7 additions and 3 deletions

View file

@ -25,6 +25,7 @@
* Update the configurate gem to avoid issues by missed missing settings keys [#5934](https://github.com/diaspora/diaspora/pull/5934)
* ContactPresenter#full_hash_with_person did not contain relationship information [#5936](https://github.com/diaspora/diaspora/pull/5936)
* Fix inactive user removal not respecting configuration for daily limits [#5953](https://github.com/diaspora/diaspora/pull/5953)
* Fix missing localization of inactive user removal warning emails [#5950](https://github.com/diaspora/diaspora/issues/5950)
## Features
* Hide post title of limited post in comment notification email [#5843](https://github.com/diaspora/diaspora/pull/5843)

View file

@ -7,9 +7,12 @@ class Maintenance < ActionMailer::Base
@pod_url = AppConfig.environment.url
@after_days = AppConfig.settings.maintenance.remove_old_users.after_days.to_s
@remove_after = @user.remove_after
mail(:to => @user.email, :subject => I18n.t('notifier.remove_old_user.subject')) do |format|
format.text
format.html
I18n.with_locale(@user.language) do
mail(to: @user.email, subject: I18n.t("notifier.remove_old_user.subject")) do |format|
format.text
format.html
end
end
end
end