2019-09-30 18:46:31 +02:00
|
|
|
// 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
|
2023-07-16 00:32:39 +02:00
|
|
|
*
|
|
|
|
* NOTE: this can hypothetically be pushed further
|
|
|
|
* (up to 250000000), but will likely cause truncations
|
|
|
|
* and incompatibilities with other servers,
|
|
|
|
* as well as potential performance issues.
|
2019-09-30 18:46:31 +02:00
|
|
|
*/
|
2023-07-15 23:50:23 +02:00
|
|
|
export const DB_MAX_NOTE_TEXT_LENGTH = 100000;
|
2021-09-29 18:44:22 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Maximum image description length that can be stored in DB.
|
|
|
|
* Surrogate pairs count as one
|
|
|
|
*/
|
2023-03-04 15:16:20 +01:00
|
|
|
export const DB_MAX_IMAGE_COMMENT_LENGTH = 8192;
|