From 91bbb67e4a2b85339c23636e9b3f8e2500e88802 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 16 Jan 2023 06:05:58 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=97=E3=83=AD=E3=83=95=E3=82=A3=E3=83=BC?= =?UTF-8?q?=E3=83=AB=E3=81=AE=E6=96=87=E5=AD=97=E6=95=B0=E5=88=B6=E9=99=90?= =?UTF-8?q?=E3=82=92=E7=B7=A9=E5=92=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + packages/backend/src/models/entities/User.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cfd4640a3d..f75a666a42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -89,6 +89,7 @@ You should also include the user name that made the change. - Server: Judge instance block by endsWith @tamaina - Server: improve note scoring for featured notes @CyberRex0 - Server: アンケート選択肢の文字数制限を緩和 @syuilo +- Server: プロフィールの文字数制限を緩和 @syuilo - Server: add rate limits for some endpoints @syuilo - Server: improve stats api performance @syuilo - Server: improve nodeinfo performance @syuilo diff --git a/packages/backend/src/models/entities/User.ts b/packages/backend/src/models/entities/User.ts index 8bd5c9700d..1cfcc814ea 100644 --- a/packages/backend/src/models/entities/User.ts +++ b/packages/backend/src/models/entities/User.ts @@ -232,6 +232,6 @@ export type CacheableUser = CacheableLocalUser | CacheableRemoteUser; export const localUsernameSchema = { type: 'string', pattern: /^\w{1,20}$/.toString().slice(1, -1) } as const; export const passwordSchema = { type: 'string', minLength: 1 } as const; export const nameSchema = { type: 'string', minLength: 1, maxLength: 50 } as const; -export const descriptionSchema = { type: 'string', minLength: 1, maxLength: 500 } as const; +export const descriptionSchema = { type: 'string', minLength: 1, maxLength: 1500 } as const; export const locationSchema = { type: 'string', minLength: 1, maxLength: 50 } as const; export const birthdaySchema = { type: 'string', pattern: /^([0-9]{4})-([0-9]{2})-([0-9]{2})$/.toString().slice(1, -1) } as const;