1
0
Fork 0
forked from fedi/mastodon

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

This commit is contained in:
Eugen Rochko 2018-11-27 19:15:08 +01:00
parent 4cc9ada971
commit 6cf5716ece

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)