lib/Koyaaan/statuses_controller.rb in Koyaaan-0.1.0 vs lib/Koyaaan/statuses_controller.rb in Koyaaan-0.1.1

- old
+ new

@@ -1,16 +1,16 @@ -module ApiV1StatusesControllerPatch - def create - status = Koyaaan.convert_toot(status_params[:status]) - @status = PostStatusService.new.call(current_user.account, - status, - status_params[:in_reply_to_id].blank? ? nil : Status.find(status_params[:in_reply_to_id]), - media_ids: status_params[:media_ids], - sensitive: status_params[:sensitive], - spoiler_text: status_params[:spoiler_text], - visibility: status_params[:visibility], - application: doorkeeper_token.application, - idempotency: request.headers['Idempotency-Key']) - - render json: @status, serializer: REST::StatusSerializer - end +module ApiV1StatusesControllerPatch + def create + status = Koyaaan.convert_toot(status_params[:status]) + @status = PostStatusService.new.call(current_user.account, + status, + status_params[:in_reply_to_id].blank? ? nil : Status.find(status_params[:in_reply_to_id]), + media_ids: status_params[:media_ids], + sensitive: status_params[:sensitive], + spoiler_text: status_params[:spoiler_text], + visibility: status_params[:visibility], + application: doorkeeper_token.application, + idempotency: request.headers['Idempotency-Key']) + + render json: @status, serializer: REST::StatusSerializer + end end \ No newline at end of file