Browse Source

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

pull/4/head
Eugen Rochko 5 years ago
committed by GitHub
parent
commit
11955600ad
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      app/workers/activitypub/delivery_worker.rb

+ 2
- 0
app/workers/activitypub/delivery_worker.rb 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)

Loading…
Cancel
Save