From 7dc114f5895905151d7d903b1adb6928da46a45a Mon Sep 17 00:00:00 2001 From: Holly 'Frinkel' Lotor Date: Mon, 20 Jan 2020 21:14:05 +0000 Subject: More smoke testing, I believe the stability is passable now --- app/controllers/well_known/webfinger_controller.rb | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'app/controllers') diff --git a/app/controllers/well_known/webfinger_controller.rb b/app/controllers/well_known/webfinger_controller.rb index 53f7f1e27..bf4e5d6b9 100644 --- a/app/controllers/well_known/webfinger_controller.rb +++ b/app/controllers/well_known/webfinger_controller.rb @@ -9,17 +9,8 @@ module WellKnown def show @account = Account.find_local!(username_from_resource) - respond_to do |format| - format.any(:json, :html) do - render json: @account, serializer: WebfingerSerializer, content_type: 'application/jrd+json' - end - - format.xml do - render content_type: 'application/xrd+xml' - end - end - expires_in 3.days, public: true + render json: @account, serializer: WebfingerSErializer, content_type: 'application/jrd+json' rescue ActiveRecord::RecordNotFound head 404 end -- cgit