Have Follow
activities bypass availability (#27586)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
93e4cdc31b
commit
1cc512909c
2 changed files with 4 additions and 3 deletions
|
@ -23,9 +23,10 @@ class ActivityPub::DeliveryWorker
|
|||
HEADERS = { 'Content-Type' => 'application/activity+json' }.freeze
|
||||
|
||||
def perform(json, source_account_id, inbox_url, options = {})
|
||||
return unless DeliveryFailureTracker.available?(inbox_url)
|
||||
|
||||
@options = options.with_indifferent_access
|
||||
|
||||
return unless @options[:bypass_availability] || DeliveryFailureTracker.available?(inbox_url)
|
||||
|
||||
@json = json
|
||||
@source_account = Account.find(source_account_id)
|
||||
@inbox_url = inbox_url
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue