mirror of
https://github.com/discourse/discourse.git
synced 2025-03-03 09:49:42 +00: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)
|
params.require(:post_ids)
|
||||||
|
|
||||||
@topic_view = TopicView.new(params[:topic_id], current_user, post_ids: params[: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
|
end
|
||||||
|
|
||||||
def destroy_timings
|
def destroy_timings
|
||||||
|
Loading…
x
Reference in New Issue
Block a user