FIX: use site default locale for flag title and body
This commit is contained in:
parent
484cd8b362
commit
acbec76411
|
@ -213,8 +213,8 @@ SQL
|
||||||
|
|
||||||
return unless opts[:message] && [:notify_moderators, :notify_user, :spam].include?(post_action_type)
|
return unless opts[:message] && [:notify_moderators, :notify_user, :spam].include?(post_action_type)
|
||||||
|
|
||||||
title = I18n.t("post_action_types.#{post_action_type}.email_title", title: post.topic.title)
|
title = I18n.t("post_action_types.#{post_action_type}.email_title", title: post.topic.title, locale: SiteSetting.default_locale)
|
||||||
body = I18n.t("post_action_types.#{post_action_type}.email_body", message: opts[:message], link: "#{Discourse.base_url}#{post.url}")
|
body = I18n.t("post_action_types.#{post_action_type}.email_body", message: opts[:message], link: "#{Discourse.base_url}#{post.url}", locale: SiteSetting.default_locale)
|
||||||
warning = opts[:is_warning] if opts[:is_warning].present?
|
warning = opts[:is_warning] if opts[:is_warning].present?
|
||||||
title = title.truncate(255, separator: /\s/)
|
title = title.truncate(255, separator: /\s/)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue