about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-08-30 02:49:33 +0200
committerGitHub <noreply@github.com>2019-08-30 02:49:33 +0200
commit60e684af5f9bfb73cd3b7cfe1cf5678c6d8f69c8 (patch)
treef162cfe7c47722015d7cf7291183414ef2f4daaa
parentb54b725d6bc8dd0a4ab0fe0bf408193c1bae8106 (diff)
Fix uncaught error when resource param is missing in Webfinger request (#11701)
-rw-r--r--app/controllers/well_known/webfinger_controller.rb2
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