Skip deliveries to inboxes that have already been marked as unavailable (#9358)

lolsob-rspec
Eugen Rochko 2018-11-27 19:15:08 +01:00 committed by GitHub
parent 81536e07ab
commit 12ee020187
1 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,8 @@ class ActivityPub::DeliveryWorker
HEADERS = { 'Content-Type' => 'application/activity+json' }.freeze
def perform(json, source_account_id, inbox_url, options = {})
return if DeliveryFailureTracker.unavailable?(inbox_url)
@options = options.with_indifferent_access
@json = json
@source_account = Account.find(source_account_id)