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

lolsob-rspec
Eugen Rochko 2019-08-30 02:49:33 +02:00 committed by GitHub
parent ee9d0c0f38
commit a2a65f43b2
1 changed files with 1 additions and 1 deletions

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