Apply DB limit to the maximum note text length (#5465)
This commit is contained in:
parent
cea2d621f2
commit
6ba5968861
4 changed files with 16 additions and 3 deletions
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;
|
Loading…
Add table
Add a link
Reference in a new issue