diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-08-30 02:49:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-30 02:49:33 +0200 |
commit | 60e684af5f9bfb73cd3b7cfe1cf5678c6d8f69c8 (patch) | |
tree | f162cfe7c47722015d7cf7291183414ef2f4daaa /app/controllers | |
parent | b54b725d6bc8dd0a4ab0fe0bf408193c1bae8106 (diff) |
Fix uncaught error when resource param is missing in Webfinger request (#11701)
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/well_known/webfinger_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/well_known/webfinger_controller.rb b/app/controllers/well_known/webfinger_controller.rb index 50bace217..d60bf98ab 100644 --- a/app/controllers/well_known/webfinger_controller.rb +++ b/app/controllers/well_known/webfinger_controller.rb @@ -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 |