Sha256: 4dbb982b196561bbafe0d98760e6be59ff1b7e81bba21bdd4565ddee3f51eab7
Contents?: true
Size: 958 Bytes
Versions: 3
Compression:
Stored size: 958 Bytes
Contents
module ApiV1StatusesControllerPatch def create status = MastodonCthulhu.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
3 entries across 3 versions & 1 rubygems