forked from treehouse/mastodon
Fix DeliveryWorker not to call failure_tracker when inbox_url is unavailable (#13482)
parent
ea200a178e
commit
04c8d825f6
|
@ -23,12 +23,14 @@ class ActivityPub::DeliveryWorker
|
||||||
|
|
||||||
perform_request
|
perform_request
|
||||||
ensure
|
ensure
|
||||||
|
if @inbox_url.present?
|
||||||
if @performed
|
if @performed
|
||||||
failure_tracker.track_success!
|
failure_tracker.track_success!
|
||||||
else
|
else
|
||||||
failure_tracker.track_failure!
|
failure_tracker.track_failure!
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue