about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-08-01 19:14:02 +0200
committerGitHub <noreply@github.com>2019-08-01 19:14:02 +0200
commit8b9d0a05337b6bcf57b51abf45e21d9474bf2684 (patch)
treecc43f34fe2c2a7f9cf05a6c479bb9d624770407b /app/controllers
parent706a48ee1f2075ffb35ad4ad9cfc2f23fffbffcb (diff)
Remove XML version of Webfinger and remove links to Atom feeds (#11460)
Fix #11453
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..50bace217 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