about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorHolly 'Frinkel' Lotor <admin@frinkel.tech>2020-01-20 21:14:05 +0000
committerHolly 'Frinkel' Lotor <admin@frinkel.tech>2020-01-20 16:58:12 -0500
commit7dc114f5895905151d7d903b1adb6928da46a45a (patch)
treec2d195213a8514f5c020d9927b3386bb976d4d06 /app/controllers
parente37c5a967af4b9c4338df709646375ea427f157e (diff)
More smoke testing, I believe the stability is passable now
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/well_known/webfinger_controller.rb11
1 files changed, 1 insertions, 10 deletions
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