Merge pull request #2955 from riking/include_raw_2

FEATURE: ?include_raw parameter for /t/id/posts.json
This commit is contained in:
Robin Ward 2014-11-07 10:50:15 -05:00
commit 40900e59d1

View File

@ -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