mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
FIX: log message when revoking email with too many bounces
This commit is contained in:
parent
0d250c3935
commit
c725225f69
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ module Email
|
||||||
elsif bounce_score >= SiteSetting.bounce_score_threshold
|
elsif bounce_score >= SiteSetting.bounce_score_threshold
|
||||||
# NOTE: we check bounce_score before sending emails, nothing to do
|
# NOTE: we check bounce_score before sending emails, nothing to do
|
||||||
# here other than log it happened.
|
# 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)
|
StaffActionLogger.new(Discourse.system_user).log_revoke_email(user, reason)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue