about summary refs log tree commit diff
path: root/app/workers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-11-27 19:15:08 +0100
committerGitHub <noreply@github.com>2018-11-27 19:15:08 +0100
commit11955600ad8ef1be41b01c5424a07975caeaaf51 (patch)
tree93a069b397bf6b1d12d7a3882f1eaaccb4c42e57 /app/workers
parent81f96c973afab8b8357651dd55bc7b086d512935 (diff)
Skip deliveries to inboxes that have already been marked as unavailable (#9358)
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/activitypub/delivery_worker.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/workers/activitypub/delivery_worker.rb b/app/workers/activitypub/delivery_worker.rb
index adbb496d9..f9c385ea3 100644
--- a/app/workers/activitypub/delivery_worker.rb
+++ b/app/workers/activitypub/delivery_worker.rb
@@ -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)