use existing method for target_group_names

This commit is contained in:
Arpit Jalan 2016-08-05 18:57:46 +05:30
parent c064e946b2
commit cda108da56

View file

@ -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