From a4aeb21f0cae3bc405705f8ea6d942410d90147b Mon Sep 17 00:00:00 2001 From: Erick Guan Date: Tue, 6 May 2014 16:24:12 +0800 Subject: [PATCH] Add regular notification level into topic_view_serializer for the user who enter the new topic --- app/serializers/topic_view_serializer.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/serializers/topic_view_serializer.rb b/app/serializers/topic_view_serializer.rb index db3bbe18b3f..b6ec57c43f0 100644 --- a/app/serializers/topic_view_serializer.rb +++ b/app/serializers/topic_view_serializer.rb @@ -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)