summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/ActivityPubServerService.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-12-25 14:56:59 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2022-12-25 14:56:59 +0900
commit225dbec8b9daf58ff966cca482af66d48602a372 (patch)
tree21ce49f5a1813babbadea14d852cddebd9b1a2e6 /packages/backend/src/server/ActivityPubServerService.ts
parentfix (diff)
downloadsharkey-225dbec8b9daf58ff966cca482af66d48602a372.tar.gz
sharkey-225dbec8b9daf58ff966cca482af66d48602a372.tar.bz2
sharkey-225dbec8b9daf58ff966cca482af66d48602a372.zip
64kb
Diffstat (limited to 'packages/backend/src/server/ActivityPubServerService.ts')
-rw-r--r--packages/backend/src/server/ActivityPubServerService.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/backend/src/server/ActivityPubServerService.ts b/packages/backend/src/server/ActivityPubServerService.ts
index d0df571216..bdd2e97508 100644
--- a/packages/backend/src/server/ActivityPubServerService.ts
+++ b/packages/backend/src/server/ActivityPubServerService.ts
@@ -438,9 +438,9 @@ export class ActivityPubServerService {
fastify.addContentTypeParser('application/ld+json', { parseAs: 'string' }, fastify.getDefaultJsonParser('ignore', 'ignore'));
//#region Routing
- // inbox (limit: 256kb)
- fastify.post('/inbox', { bodyLimit: 1024 * 256 }, async (request, reply) => await this.inbox(request, reply));
- fastify.post('/users/:user/inbox', { bodyLimit: 1024 * 256 }, async (request, reply) => await this.inbox(request, reply));
+ // inbox (limit: 64kb)
+ fastify.post('/inbox', { bodyLimit: 1024 * 64 }, async (request, reply) => await this.inbox(request, reply));
+ fastify.post('/users/:user/inbox', { bodyLimit: 1024 * 64 }, async (request, reply) => await this.inbox(request, reply));
// note
fastify.get<{ Params: { note: string; } }>('/notes/:note', { constraints: { apOrHtml: 'ap' } }, async (request, reply) => {