Skip to content

Commit

Permalink
statuses controller: accept quote_id parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
kaniini committed Dec 25, 2022
1 parent 968bd6f commit ba965be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/api/v1/statuses_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ def create
poll: status_params[:poll],
content_type: status_params[:content_type],
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
Expand Down Expand Up @@ -129,6 +130,7 @@ def status_params
:visibility,
:language,
:scheduled_at,
:quote_id,
:content_type,
media_ids: [],
poll: [
Expand Down

0 comments on commit ba965be

Please sign in to comment.