Merge pull request #2314 from fantasticfears/fix_notification_level

Add regular notification level into topic_view_serializer
This commit is contained in:
Sam 2014-05-08 09:17:40 +10:00
commit b144ad4e5b
1 changed files with 2 additions and 0 deletions

View File

@ -92,6 +92,8 @@ class TopicViewSerializer < ApplicationSerializer
if has_topic_user?
result[:notification_level] = object.topic_user.notification_level
result[:notifications_reason_id] = object.topic_user.notifications_reason_id
else
result[:notification_level] = TopicUser.notification_levels[:regular]
end
result[:can_move_posts] = true if scope.can_move_posts?(object.topic)