th: services: post status service: add quote_id to status parameters

This commit is contained in:
Ariadne Conill 2022-12-25 02:20:15 +00:00
parent 0a7435f4ba
commit 5b34734400

View file

@ -21,6 +21,7 @@ class PostStatusService < BaseService
# @option [Doorkeeper::Application] :application
# @option [String] :idempotency Optional idempotency key
# @option [Boolean] :with_rate_limit
# @option [String] :quote_id
# @return [Status]
def call(account, options = {})
@account = account
@ -179,6 +180,7 @@ class PostStatusService < BaseService
application: @options[:application],
content_type: @options[:content_type] || @account.user&.setting_default_content_type,
rate_limit: @options[:with_rate_limit],
quote_id: @options[:quote_id],
}.compact
end