Support /.well-known/host-meta.json (#32206)

This commit is contained in:
Christian Schmidt authored and GitHub committed 2024-10-02 09:23:44 +00:00
1 parent f0716368e6
commit 33d3ca7cf1
4 files changed
+55 -14

No files matched your search

@@ -7,7 +7,23 @@ module WellKnown
def show
@webfinger_template = "#{webfinger_url}?resource={uri}"
expires_in 3.days, public: true
render content_type: 'application/xrd+xml', formats: [:xml]
respond_to do |format|
format.any do
render content_type: 'application/xrd+xml', formats: [:xml]
end
format.json do
render json: {
links: [
{
rel: 'lrdd',
template: @webfinger_template,
},
],
}
end
end
end
end
end