mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
PERF: Only send down suggested payload when loading last chunk.
This commit is contained in:
@ -717,7 +717,12 @@ class TopicsController < ApplicationController
|
||||
return
|
||||
end
|
||||
|
||||
topic_view_serializer = TopicViewSerializer.new(@topic_view, scope: guardian, root: false, include_raw: !!params[:include_raw])
|
||||
topic_view_serializer = TopicViewSerializer.new(@topic_view,
|
||||
scope: guardian,
|
||||
root: false,
|
||||
include_raw: !!params[:include_raw],
|
||||
page: params[:page]
|
||||
)
|
||||
|
||||
respond_to do |format|
|
||||
format.html do
|
||||
|
Reference in New Issue
Block a user