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)
|
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
|
||||||
|
|
Loading…
Reference in New Issue