From 657f40e7715cf8992ada81f43053c7e07f1e19a3 Mon Sep 17 00:00:00 2001 From: cutestnekoaqua Date: Sat, 11 Feb 2023 00:35:30 +0100 Subject: [PATCH] ree --- packages/backend/src/server/api/index.ts | 2 +- packages/backend/src/server/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/server/api/index.ts b/packages/backend/src/server/api/index.ts index e2a0257e6..f1889a8b6 100644 --- a/packages/backend/src/server/api/index.ts +++ b/packages/backend/src/server/api/index.ts @@ -60,7 +60,7 @@ router.use( }), ); -mastoRouter.use(koaBody()); +mastoRouter.use(koaBody({ multipart: true })); apiMastodonCompatible(mastoRouter); diff --git a/packages/backend/src/server/index.ts b/packages/backend/src/server/index.ts index a3cdad438..521f3ddf6 100644 --- a/packages/backend/src/server/index.ts +++ b/packages/backend/src/server/index.ts @@ -72,7 +72,7 @@ app.use(mount("/proxy", proxyServer)); const router = new Router(); const mastoRouter = new Router(); -mastoRouter.use(koaBody()); +mastoRouter.use(koaBody({ multipart: true })); // Routing router.use(activityPub.routes());