Browse Source

Fix uncaught error when resource param is missing in Webfinger request (#11701)

master^2
Eugen Rochko 4 years ago
committed by GitHub
parent
commit
60e684af5f
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/controllers/well_known/webfinger_controller.rb

+ 1
- 1
app/controllers/well_known/webfinger_controller.rb View File

@@ -11,7 +11,7 @@ module WellKnown

expires_in 3.days, public: true
render json: @account, serializer: WebfingerSerializer, content_type: 'application/jrd+json'
rescue ActiveRecord::RecordNotFound
rescue ActiveRecord::RecordNotFound, ActionController::ParameterMissing
head 404
end



Loading…
Cancel
Save