Fix response of signature_verification_failure_reason (#6441)
This commit is contained in:
parent
2bb393684b
commit
cf32f7da5c
3 changed files with 19 additions and 3 deletions
|
@ -11,7 +11,7 @@ class ActivityPub::InboxesController < Api::BaseController
|
|||
process_payload
|
||||
head 202
|
||||
else
|
||||
[signature_verification_failure_reason, 401]
|
||||
render plain: signature_verification_failure_reason, status: 401
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class Api::SalmonController < Api::BaseController
|
||||
include SignatureVerification
|
||||
|
||||
before_action :set_account
|
||||
respond_to :txt
|
||||
|
||||
|
@ -9,7 +11,7 @@ class Api::SalmonController < Api::BaseController
|
|||
process_salmon
|
||||
head 202
|
||||
elsif payload.present?
|
||||
[signature_verification_failure_reason, 401]
|
||||
render plain: signature_verification_failure_reason, status: 401
|
||||
else
|
||||
head 400
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue