mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 20:24:05 -06:00
FIX: custom reason for flags were not showing for non-english locales
This commit is contained in:
parent
d0962d6e5a
commit
c064e946b2
@ -13,7 +13,7 @@ module Jobs
|
||||
|
||||
PostCreator.create(
|
||||
Discourse.system_user,
|
||||
target_group_names: ["staff"],
|
||||
target_group_names: Group[:staff].name,
|
||||
archetype: Archetype.private_message,
|
||||
subtype: TopicSubtype.system_message,
|
||||
title: I18n.t('flags_reminder.subject_template', { count: PostAction.flagged_posts_count }),
|
||||
|
@ -227,7 +227,7 @@ SQL
|
||||
|
||||
if [:notify_moderators, :spam].include?(post_action_type)
|
||||
opts[:subtype] = TopicSubtype.notify_moderators
|
||||
opts[:target_group_names] = "moderators"
|
||||
opts[:target_group_names] = Group[:moderators].name
|
||||
else
|
||||
opts[:subtype] = TopicSubtype.notify_user
|
||||
opts[:target_usernames] = if post_action_type == :notify_user
|
||||
|
Loading…
Reference in New Issue
Block a user