mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 20:32:44 +08:00
This reverts commit 002c6763440c65bd6587dbe5b8e820b3713f406c. Perf regression, we will redo it.
This commit is contained in:
@ -608,9 +608,7 @@ class ApplicationController < ActionController::Base
|
||||
def preload_current_user_data
|
||||
store_preloaded("currentUser", MultiJson.dump(CurrentUserSerializer.new(current_user, scope: guardian, root: false)))
|
||||
report = TopicTrackingState.report(current_user)
|
||||
serializer = ActiveModel::ArraySerializer.new(
|
||||
report, each_serializer: TopicTrackingStateSerializer, scope: guardian
|
||||
)
|
||||
serializer = ActiveModel::ArraySerializer.new(report, each_serializer: TopicTrackingStateSerializer)
|
||||
store_preloaded("topicTrackingStates", MultiJson.dump(serializer))
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user