mirror of
https://github.com/discourse/discourse.git
synced 2025-06-08 00:27:32 +08:00
use existing method for target_group_names
This commit is contained in:
@ -227,7 +227,7 @@ SQL
|
|||||||
|
|
||||||
if [:notify_moderators, :spam].include?(post_action_type)
|
if [:notify_moderators, :spam].include?(post_action_type)
|
||||||
opts[:subtype] = TopicSubtype.notify_moderators
|
opts[:subtype] = TopicSubtype.notify_moderators
|
||||||
opts[:target_group_names] = Group[:moderators].name
|
opts[:target_group_names] = target_moderators
|
||||||
else
|
else
|
||||||
opts[:subtype] = TopicSubtype.notify_user
|
opts[:subtype] = TopicSubtype.notify_user
|
||||||
opts[:target_usernames] = if post_action_type == :notify_user
|
opts[:target_usernames] = if post_action_type == :notify_user
|
||||||
|
Reference in New Issue
Block a user