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