th: statuses controller: accept quote_id parameter

lolsob-rspec
Ariadne Conill 2022-12-25 02:18:17 +00:00
parent 1031a532f7
commit 0a7435f4ba
1 changed files with 3 additions and 1 deletions

View File

@ -65,7 +65,8 @@ class Api::V1::StatusesController < Api::BaseController
poll: status_params[:poll], poll: status_params[:poll],
content_type: status_params[:content_type], content_type: status_params[:content_type],
idempotency: request.headers['Idempotency-Key'], idempotency: request.headers['Idempotency-Key'],
with_rate_limit: true with_rate_limit: true,
quote_id: status_params[:quote_id].presence
) )
render json: @status, serializer: @status.is_a?(ScheduledStatus) ? REST::ScheduledStatusSerializer : REST::StatusSerializer render json: @status, serializer: @status.is_a?(ScheduledStatus) ? REST::ScheduledStatusSerializer : REST::StatusSerializer
@ -129,6 +130,7 @@ class Api::V1::StatusesController < Api::BaseController
:visibility, :visibility,
:language, :language,
:scheduled_at, :scheduled_at,
:quote_id,
:content_type, :content_type,
media_ids: [], media_ids: [],
poll: [ poll: [