Merge pull request #2314 from fantasticfears/fix_notification_level
Add regular notification level into topic_view_serializer
This commit is contained in:
commit
b144ad4e5b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue