mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-22 14:15:22 +00:00
Change ActivityPub::DeliveryWorker to not retry HTTP 501 errors (#11233)
This commit is contained in:
parent
d9a024840e
commit
f2795699dd
|
@ -51,7 +51,7 @@ class ActivityPub::DeliveryWorker
|
|||
end
|
||||
|
||||
def response_error_unsalvageable?(response)
|
||||
(400...500).cover?(response.code) && ![401, 408, 429].include?(response.code)
|
||||
response.code == 501 || ((400...500).cover?(response.code) && ![401, 408, 429].include?(response.code))
|
||||
end
|
||||
|
||||
def failure_tracker
|
||||
|
|
Loading…
Reference in a new issue