mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix DeliveryWorker not to call failure_tracker when inbox_url is unavailable (#13482)
This commit is contained in:
parent
ea200a178e
commit
04c8d825f6
@ -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…
Reference in New Issue
Block a user