correct tracking logic

This commit is contained in:
Sam 2016-01-27 23:20:29 +11:00
parent 50a63a491c
commit 7b558f959e
1 changed files with 2 additions and 1 deletions

View File

@ -73,9 +73,10 @@ class TopicCreator
tag.group.group_users.each do |gu|
next if gu.user_id == -1 || gu.user_id == topic.user_id
action = case gu.notification_level
when TopicUser.notification_levels[:tracking] then "watch!"
when TopicUser.notification_levels[:tracking] then "track!"
when TopicUser.notification_levels[:regular] then "regular!"
when TopicUser.notification_levels[:muted] then "mute!"
when TopicUser.notification_levels[:watching] then "watch!"
else "track!"
end
topic.notifier.send(action, gu.user_id)