diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2020-04-15 20:33:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-15 20:33:24 +0200 |
commit | 5edff32733eff2cbffbf614b31eea85da8dc3aaf (patch) | |
tree | b0ab38cbf8793f47017e2151de5dd32bdd83a29a /app/workers/activitypub | |
parent | 5524258da9bc1d62b1396d19c672d3a8335ffbc5 (diff) |
Change delivery failure tracking to work with hostnames instead of URLs (#13437)
Diffstat (limited to 'app/workers/activitypub')
-rw-r--r-- | app/workers/activitypub/delivery_worker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/activitypub/delivery_worker.rb b/app/workers/activitypub/delivery_worker.rb index 196af4af1..0f925658f 100644 --- a/app/workers/activitypub/delivery_worker.rb +++ b/app/workers/activitypub/delivery_worker.rb @@ -12,7 +12,7 @@ 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) + return unless DeliveryFailureTracker.available?(inbox_url) @options = options.with_indifferent_access @json = json |