From 3ddb1ec5553167b0b1cb852e906a691ea65522a4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 7 Jun 2019 10:56:59 +0200 Subject: Try to fix remote mastodon interactions --- server/controllers/static.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'server/controllers/static.ts') 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', } ) +staticRouter.use('/.well-known/host-meta', + (_, res: express.Response) => { + res.type('application/xml'); + + const xml = '\n' + + '\n' + + ` \n` + + '' + + res.send(xml).end() + } +) + // --------------------------------------------------------------------------- export { -- cgit v1.2.3 From 03371ad9d049bab79445a1b35da44cb1272f6c28 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 7 Jun 2019 14:34:11 +0200 Subject: Fix video import if autoblacklist is enabled --- server/controllers/static.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/controllers/static.ts') diff --git a/server/controllers/static.ts b/server/controllers/static.ts index 73951be2d..fb2e7742a 100644 --- a/server/controllers/static.ts +++ b/server/controllers/static.ts @@ -158,7 +158,7 @@ staticRouter.use('/.well-known/change-password', staticRouter.use('/.well-known/host-meta', (_, res: express.Response) => { - res.type('application/xml'); + res.type('application/xml') const xml = '\n' + '\n' + -- cgit v1.2.3