Browse Source

Change ActivityPub::DeliveryWorker to not retry HTTP 501 errors (#11233)

master
Eugen Rochko 5 years ago
committed by GitHub
parent
commit
bc60d794f8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/workers/activitypub/delivery_worker.rb

+ 1
- 1
app/workers/activitypub/delivery_worker.rb View File

@ -54,7 +54,7 @@ class ActivityPub::DeliveryWorker
end end
def response_error_unsalvageable?(response) 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 end
def failure_tracker def failure_tracker

Loading…
Cancel
Save