mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 19:34:25 +08:00
FIX: Use default locale for flag reason
This commit is contained in:
parent
edb97edf5f
commit
badad80cdf
@ -599,7 +599,7 @@ SQL
|
|||||||
options = {
|
options = {
|
||||||
url: post.url,
|
url: post.url,
|
||||||
edit_delay: SiteSetting.cooldown_minutes_after_hiding_posts,
|
edit_delay: SiteSetting.cooldown_minutes_after_hiding_posts,
|
||||||
flag_reason: I18n.t("flag_reasons.#{post_action_type}"),
|
flag_reason: I18n.t("flag_reasons.#{post_action_type}", locale: SiteSetting.default_locale),
|
||||||
}
|
}
|
||||||
|
|
||||||
Jobs.enqueue_in(5.seconds, :send_system_message,
|
Jobs.enqueue_in(5.seconds, :send_system_message,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user