From c725225f69461171d03b7d1bec163ec4c58174ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Wed, 1 Feb 2017 16:53:24 +0100 Subject: [PATCH] FIX: log message when revoking email with too many bounces --- lib/email/receiver.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/email/receiver.rb b/lib/email/receiver.rb index 843a64d55ea..7b2c583a249 100644 --- a/lib/email/receiver.rb +++ b/lib/email/receiver.rb @@ -156,7 +156,7 @@ module Email elsif bounce_score >= SiteSetting.bounce_score_threshold # NOTE: we check bounce_score before sending emails, nothing to do # here other than log it happened. - reason = I18n.t("user.email.revoked", date: user.user_stat.reset_bounce_score_after) + reason = I18n.t("user.email.revoked", { email: user.email, date: user.user_stat.reset_bounce_score_after }) StaffActionLogger.new(Discourse.system_user).log_revoke_email(user, reason) end end