From d8611506cf768c0761e790ac0c7657f4d6f8d25e Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 6 Dec 2022 09:21:36 +0900 Subject: [PATCH] =?UTF-8?q?inbox=E3=81=8C=E5=87=A6=E7=90=86=E3=81=A7?= =?UTF-8?q?=E3=81=8D=E3=81=AA=E3=81=84=E5=95=8F=E9=A1=8C=E3=82=92=E5=A4=9A?= =?UTF-8?q?=E5=88=86=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/server/ActivityPubServerService.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/backend/src/server/ActivityPubServerService.ts b/packages/backend/src/server/ActivityPubServerService.ts index 94a277f4a..d1361ed5e 100644 --- a/packages/backend/src/server/ActivityPubServerService.ts +++ b/packages/backend/src/server/ActivityPubServerService.ts @@ -433,6 +433,8 @@ export class ActivityPubServerService { }); fastify.register(fastifyAccepts); + fastify.addContentTypeParser('application/activity+json', { parseAs: 'string' }, fastify.getDefaultJsonParser('ignore', 'ignore')); + fastify.addContentTypeParser('application/ld+json', { parseAs: 'string' }, fastify.getDefaultJsonParser('ignore', 'ignore')); //#region Routing // inbox