forked from cybrespace/mastodon
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
|
perform_request
|
||||||
ensure
|
ensure
|
||||||
if @performed
|
if @inbox_url.present?
|
||||||
failure_tracker.track_success!
|
if @performed
|
||||||
else
|
failure_tracker.track_success!
|
||||||
failure_tracker.track_failure!
|
else
|
||||||
|
failure_tracker.track_failure!
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue