diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2022-12-25 14:22:23 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2022-12-25 14:22:23 +0900 |
| commit | f44a7e25361b1cee202c744ced4f988e658209b8 (patch) | |
| tree | b0786f17f0dc22bd7c6985c2453cb6debc3bbce7 /packages/backend/src/const.ts | |
| parent | feat: introduce retention-rate aggregation (diff) | |
| download | misskey-f44a7e25361b1cee202c744ced4f988e658209b8.tar.gz misskey-f44a7e25361b1cee202c744ced4f988e658209b8.tar.bz2 misskey-f44a7e25361b1cee202c744ced4f988e658209b8.zip | |
refactor
Diffstat (limited to 'packages/backend/src/const.ts')
| -rw-r--r-- | packages/backend/src/const.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/backend/src/const.ts b/packages/backend/src/const.ts index e2203b6b45..6c7f214214 100644 --- a/packages/backend/src/const.ts +++ b/packages/backend/src/const.ts @@ -3,6 +3,22 @@ export const MAX_NOTE_TEXT_LENGTH = 3000; export const USER_ONLINE_THRESHOLD = 1000 * 60 * 10; // 10min export const USER_ACTIVE_THRESHOLD = 1000 * 60 * 60 * 24 * 3; // 3days +//#region hard limits +// If you change DB_* values, you must also change the DB schema. + +/** + * Maximum note text length that can be stored in DB. + * Surrogate pairs count as one + */ +export const DB_MAX_NOTE_TEXT_LENGTH = 8192; + +/** + * Maximum image description length that can be stored in DB. + * Surrogate pairs count as one + */ +export const DB_MAX_IMAGE_COMMENT_LENGTH = 512; +//#endregion + // ブラウザで直接表示することを許可するファイルの種類のリスト // ここに含まれないものは application/octet-stream としてレスポンスされる // SVGはXSSを生むので許可しない |