mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
more progress towards live unread and new counts, unread message implemented, still to implement delete messages
This commit is contained in:
@ -107,6 +107,9 @@ class ApplicationController < ActionController::Base
|
||||
|
||||
if current_user.present?
|
||||
store_preloaded("currentUser", MultiJson.dump(CurrentUserSerializer.new(current_user, root: false)))
|
||||
|
||||
serializer = ActiveModel::ArraySerializer.new(TopicTrackingState.report([current_user.id]), each_serializer: TopicTrackingStateSerializer)
|
||||
store_preloaded("topicTrackingStates", MultiJson.dump(serializer))
|
||||
end
|
||||
store_preloaded("siteSettings", SiteSetting.client_settings_json)
|
||||
end
|
||||
|
Reference in New Issue
Block a user