Skip to content

Commit

Permalink
Change ActivityPub::DeliveryWorker to not retry HTTP 501 errors (mast…
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron authored and hiyuki2578 committed Oct 2, 2019
1 parent 4cd207d commit 92896a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/workers/activitypub/delivery_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def response_successful?(response)
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
Expand Down

0 comments on commit 92896a5

Please sign in to comment.