Update post json

This commit is contained in:
2018-06-05 08:04:42 +10:00
parent db4559287f
commit be2b7b06b4
+2 -1
View File
@@ -20,7 +20,8 @@ class Api::V1::PostsController < Api::V1::ApplicationController
share_instance = @current_user.share_instances.create! sharable: @post, description: params[:description]
@current_user.timeline_sources.create! post_id: @post.id, action_type: 'share'
@post.images.create permit_params[:images]
render json: share_instance.to_json(include: :sharable)
#render json: share_instance.to_json(include: :sharable)
render json: @post.to_json(include: :images)
end
def show