about summary refs log tree commit diff
path: root/app/workers/activitypub
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-11-29 19:22:52 +0100
committerThibaut Girka <thib@sitedethib.com>2018-11-29 19:22:52 +0100
commitad7a3974cc48946b5cb8182da4f9e236aa5e39a1 (patch)
tree4ec696e3bfd7406b0fbe54f71aed649241663ecf /app/workers/activitypub
parent6a264c9379a50cb94afc8dd369bfc5b626a9c4d1 (diff)
parentfa9f28f52d38b5cf3184d6bc77f5554b74fca348 (diff)
Merge branch 'master' into glitch-soc/merge-upstream
Diffstat (limited to 'app/workers/activitypub')
-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)