mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-25 15:09:29 +00:00
Fix DeliveryWorker not to call failure_tracker when inbox_url is unavailable (#13482)
This commit is contained in:
parent
ea200a178e
commit
04c8d825f6
|
@ -23,12 +23,14 @@ class ActivityPub::DeliveryWorker
|
|||
|
||||
perform_request
|
||||
ensure
|
||||
if @inbox_url.present?
|
||||
if @performed
|
||||
failure_tracker.track_success!
|
||||
else
|
||||
failure_tracker.track_failure!
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
|
|
Loading…
Reference in a new issue