aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-06-07 10:56:59 +0200
committerChocobozzz <me@florianbigard.com>2019-06-07 10:57:33 +0200
commit3ddb1ec5553167b0b1cb852e906a691ea65522a4 (patch)
tree87d0b2aea74f3a3025722b78eda3a3e1541d4492 /server/controllers
parent88ebb4331092c04f09c453fddafffc80ba0dd7e0 (diff)
downloadPeerTube-3ddb1ec5553167b0b1cb852e906a691ea65522a4.tar.gz
PeerTube-3ddb1ec5553167b0b1cb852e906a691ea65522a4.tar.zst
PeerTube-3ddb1ec5553167b0b1cb852e906a691ea65522a4.zip
Try to fix remote mastodon interactions
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/static.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/server/controllers/static.ts b/server/controllers/static.ts
index 05019fcc2..73951be2d 100644
--- a/server/controllers/static.ts
+++ b/server/controllers/static.ts
@@ -156,6 +156,19 @@ staticRouter.use('/.well-known/change-password',
156 } 156 }
157) 157)
158 158
159staticRouter.use('/.well-known/host-meta',
160 (_, res: express.Response) => {
161 res.type('application/xml');
162
163 const xml = '<?xml version="1.0" encoding="UTF-8"?>\n' +
164 '<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0">\n' +
165 ` <Link rel="lrdd" type="application/xrd+xml" template="${WEBSERVER.URL}/.well-known/webfinger?resource={uri}"/>\n` +
166 '</XRD>'
167
168 res.send(xml).end()
169 }
170)
171
159// --------------------------------------------------------------------------- 172// ---------------------------------------------------------------------------
160 173
161export { 174export {