Skip to content

Commit 8d35fab

Browse files
Gargronhiyuki2578
authored andcommitted
Skip deliveries to inboxes that have already been marked as unavailable (mastodon#9358)
1 parent 0033ce9 commit 8d35fab

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/workers/activitypub/delivery_worker.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ class ActivityPub::DeliveryWorker
1111
HEADERS = { 'Content-Type' => 'application/activity+json' }.freeze
1212

1313
def perform(json, source_account_id, inbox_url, options = {})
14+
return if DeliveryFailureTracker.unavailable?(inbox_url)
15+
1416
@options = options.with_indifferent_access
1517
@json = json
1618
@source_account = Account.find(source_account_id)

0 commit comments

Comments
 (0)