0
0
Fork 0

Remove XML version of Webfinger and remove links to Atom feeds (#11460)

Fix #11453
This commit is contained in:
Eugen Rochko 2019-08-01 19:14:02 +02:00 committed by GitHub
parent 706a48ee1f
commit 8b9d0a0533
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 1 additions and 91 deletions

View file

@ -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