Using double splat operator (#5859)
This commit is contained in:
parent
42bcbd36b7
commit
b21db9bbde
25 changed files with 32 additions and 32 deletions
|
@ -13,7 +13,7 @@ class PostStatusService < BaseService
|
|||
# @option [Doorkeeper::Application] :application
|
||||
# @option [String] :idempotency Optional idempotency key
|
||||
# @return [Status]
|
||||
def call(account, text, in_reply_to = nil, options = {})
|
||||
def call(account, text, in_reply_to = nil, **options)
|
||||
if options[:idempotency].present?
|
||||
existing_id = redis.get("idempotency:status:#{account.id}:#{options[:idempotency]}")
|
||||
return Status.find(existing_id) if existing_id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue