increase character limits and share between text and CW

This commit is contained in:
Hazel K 2024-10-03 19:53:57 -04:00
parent ac1e5a0fb5
commit 063b2ff266
7 changed files with 28 additions and 8 deletions

View file

@ -13,15 +13,16 @@ export const USER_ACTIVE_THRESHOLD = 1000 * 60 * 60 * 24 * 3; // 3days
/**
* Maximum note text length that can be stored in DB.
* Content Warnings are included in this limit.
* Surrogate pairs count as one
*/
export const DB_MAX_NOTE_TEXT_LENGTH = 8192;
export const DB_MAX_NOTE_TEXT_LENGTH = 100_000;
/**
* Maximum image description length that can be stored in DB.
* Surrogate pairs count as one
*/
export const DB_MAX_IMAGE_COMMENT_LENGTH = 8192;
export const DB_MAX_IMAGE_COMMENT_LENGTH = 100_000;
//#endregion
// ブラウザで直接表示することを許可するファイルの種類のリスト