diff options
author | Takeshi Umeda <noel.yoshiba@gmail.com> | 2020-04-16 15:04:10 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-16 08:04:10 +0200 |
commit | 04c8d825f6a70b48216b7b78e59068931f9231b2 (patch) | |
tree | d3b2dd8209c7e29d2e52e1cdd1a3809a1779de4a /app/workers/activitypub | |
parent | ea200a178e3b94299fe7990b7787e988b5678407 (diff) |
Fix DeliveryWorker not to call failure_tracker when inbox_url is unavailable (#13482)
Diffstat (limited to 'app/workers/activitypub')
-rw-r--r-- | app/workers/activitypub/delivery_worker.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/app/workers/activitypub/delivery_worker.rb b/app/workers/activitypub/delivery_worker.rb index 0f925658f..14e37dc34 100644 --- a/app/workers/activitypub/delivery_worker.rb +++ b/app/workers/activitypub/delivery_worker.rb @@ -23,10 +23,12 @@ class ActivityPub::DeliveryWorker perform_request ensure - if @performed - failure_tracker.track_success! - else - failure_tracker.track_failure! + if @inbox_url.present? + if @performed + failure_tracker.track_success! + else + failure_tracker.track_failure! + end end end |