]> cat aescling's git repositories - mastodon.git/commitdiff
Fix uncaught error when resource param is missing in Webfinger request (#11701)
authorEugen Rochko <eugen@zeonfederated.com>
Fri, 30 Aug 2019 00:49:33 +0000 (02:49 +0200)
committerGitHub <noreply@github.com>
Fri, 30 Aug 2019 00:49:33 +0000 (02:49 +0200)
app/controllers/well_known/webfinger_controller.rb

index 50bace217825b5080de867c9a7e1cdb64378a29d..d60bf98ab0b8f0db86bdb0045fe6e5158fca4fb6 100644 (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