Remove XML version of Webfinger and remove links to Atom feeds (#11460)
Fix #11453
This commit is contained in:
parent
706a48ee1f
commit
8b9d0a0533
6 changed files with 1 additions and 91 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue