|
|
@ -160,7 +160,7 @@ class PostStatusService < BaseService
|
|
|
|
|
|
|
|
|
|
|
|
def idempotency_duplicate
|
|
|
|
def idempotency_duplicate
|
|
|
|
if scheduled?
|
|
|
|
if scheduled?
|
|
|
|
@account.schedule_statuses.find(@idempotency_duplicate)
|
|
|
|
@account.scheduled_statuses.find(@idempotency_duplicate)
|
|
|
|
else
|
|
|
|
else
|
|
|
|
@account.statuses.find(@idempotency_duplicate)
|
|
|
|
@account.statuses.find(@idempotency_duplicate)
|
|
|
|
end
|
|
|
|
end
|
|
|
@ -211,7 +211,7 @@ class PostStatusService < BaseService
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def scheduled_options
|
|
|
|
def scheduled_options
|
|
|
|
@options.tap do |options_hash|
|
|
|
|
@options.dup.tap do |options_hash|
|
|
|
|
options_hash[:in_reply_to_id] = options_hash.delete(:thread)&.id
|
|
|
|
options_hash[:in_reply_to_id] = options_hash.delete(:thread)&.id
|
|
|
|
options_hash[:application_id] = options_hash.delete(:application)&.id
|
|
|
|
options_hash[:application_id] = options_hash.delete(:application)&.id
|
|
|
|
options_hash[:scheduled_at] = nil
|
|
|
|
options_hash[:scheduled_at] = nil
|
|
|
|