Apply DB limit to the maximum note text length (#5465)

This commit is contained in:
MeiMei
2019-10-01 01:46:31 +09:00
committed by syuilo
parent cea2d621f2
commit 6ba5968861
4 changed files with 16 additions and 3 deletions

8
src/misc/hard-limits.ts Normal file
View File

@ -0,0 +1,8 @@
// 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;