Skip to content

Commit

Permalink
Skip deliveries to inboxes that have already been marked as unavailab…
Browse files Browse the repository at this point in the history
…le (#9358)
  • Loading branch information
Gargron committed Nov 27, 2018
1 parent 81f96c9 commit 1195560
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/workers/activitypub/delivery_worker.rb
Expand Up @@ -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)
Expand Down

0 comments on commit 1195560

Please sign in to comment.