mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
Add regular notification level into topic_view_serializer for the user who enter the new topic
This commit is contained in:
parent
8e5888dee1
commit
a4aeb21f0c
@ -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
Block a user