mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 21:57:36 +08:00
Merge pull request #2955 from riking/include_raw_2
FEATURE: ?include_raw parameter for /t/id/posts.json
This commit is contained in:
commit
40900e59d1
|
@ -110,7 +110,7 @@ class TopicsController < ApplicationController
|
|||
params.require(:post_ids)
|
||||
|
||||
@topic_view = TopicView.new(params[:topic_id], current_user, post_ids: params[:post_ids])
|
||||
render_json_dump(TopicViewPostsSerializer.new(@topic_view, scope: guardian, root: false))
|
||||
render_json_dump(TopicViewPostsSerializer.new(@topic_view, scope: guardian, root: false, include_raw: !!params[:include_raw]))
|
||||
end
|
||||
|
||||
def destroy_timings
|
||||
|
|
Loading…
Reference in New Issue
Block a user