summaryrefslogtreecommitdiff
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
parentfix (diff)
downloadmisskey-225dbec8b9daf58ff966cca482af66d48602a372.tar.gz
misskey-225dbec8b9daf58ff966cca482af66d48602a372.tar.bz2
misskey-225dbec8b9daf58ff966cca482af66d48602a372.zip
64kb
Diffstat (limited to '')
-rw-r--r--CHANGELOG.md2
-rw-r--r--packages/backend/src/server/ActivityPubServerService.ts6
2 files changed, 4 insertions, 4 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index df9c47df9b..fa56344c5c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -42,7 +42,7 @@ You should also include the user name that made the change.
- Server: Bug fix for Pinned Users lookup on instance @squidicuzz
- Server: Fix peers API returning suspended instances @ineffyble
- Server: trim long text of note from ap @syuilo
-- Server: Ap inboxの最大ペイロードサイズを256kbに制限 @syuilo
+- Server: Ap inboxの最大ペイロードサイズを64kbに制限 @syuilo
- Client: case insensitive emoji search @saschanaz
- Client: InAppウィンドウが操作できなくなることがあるのを修正 @tamaina
- Client: use proxied image for instance icon @syuilo
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) => {