From 7b558f959e1aac3be10a5c5c5ffbbb6fe1dcbca9 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 27 Jan 2016 23:20:29 +1100 Subject: [PATCH] correct tracking logic --- lib/topic_creator.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/topic_creator.rb b/lib/topic_creator.rb index d04af1f4e0..d0548885d3 100644 --- a/lib/topic_creator.rb +++ b/lib/topic_creator.rb @@ -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)