mirror of
https://github.com/wahyd4/libr-2.git
synced 2026-08-08 21:07:08 +10:00
Update post json
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user