Browse Source

Fix DeliveryWorker not to call failure_tracker when inbox_url is unavailable (#13482)

master
Takeshi Umeda 4 years ago
committed by GitHub
parent
commit
04c8d825f6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      app/workers/activitypub/delivery_worker.rb

+ 6
- 4
app/workers/activitypub/delivery_worker.rb View File

@ -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

Loading…
Cancel
Save