correct tracking logic
This commit is contained in:
parent
50a63a491c
commit
7b558f959e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue