Skip to content

Commit

Permalink
Fix uncaught error when resource param is missing in Webfinger request (
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron authored Aug 30, 2019
1 parent b54b725 commit 60e684a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/well_known/webfinger_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def show

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

Expand Down

0 comments on commit 60e684a

Please sign in to comment.