Sha256: 0781be5229ab6daa573a9c0a02ffdc9b454085372dc29128eb2f5919b4bc49f8

Contents?: true

Size: 948 Bytes

Versions: 1

Compression:

Stored size: 948 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
Koyaaan-0.1.1 lib/Koyaaan/statuses_controller.rb