From: Eugen Rochko Date: Fri, 30 Aug 2019 00:49:33 +0000 (+0200) Subject: Fix uncaught error when resource param is missing in Webfinger request (#11701) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=60e684af5f9bfb73cd3b7cfe1cf5678c6d8f69c8;p=mastodon.git Fix uncaught error when resource param is missing in Webfinger request (#11701) --- 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