Skip to content

Commit 92896a5

Browse files
Gargronhiyuki2578
authored andcommitted
Change ActivityPub::DeliveryWorker to not retry HTTP 501 errors (mastodon#11233)
1 parent 4cd207d commit 92896a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/workers/activitypub/delivery_worker.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def response_successful?(response)
5454
end
5555

5656
def response_error_unsalvageable?(response)
57-
(400...500).cover?(response.code) && ![401, 408, 429].include?(response.code)
57+
response.code == 501 || ((400...500).cover?(response.code) && ![401, 408, 429].include?(response.code))
5858
end
5959

6060
def failure_tracker

0 commit comments

Comments
 (0)