mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Add regular notification level into topic_view_serializer for the user who enter the new topic
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user