mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
use existing method for target_group_names
This commit is contained in:
parent
c064e946b2
commit
cda108da56
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue