Apply DB limit to the maximum note text length (#5465)
This commit is contained in:
8
src/misc/hard-limits.ts
Normal file
8
src/misc/hard-limits.ts
Normal 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;
|
Reference in New Issue
Block a user