about summary refs log tree commit diff
path: root/src/lib/constants.ts
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-05-13 22:36:56 +0100
committerGitHub <noreply@github.com>2024-05-13 22:36:56 +0100
commit5d92ac2ce3eeb0e6d8f1c1f1ca2941dde74756ee (patch)
tree2833dcd44b365f6660a819cf53461bdcfdcecd1e /src/lib/constants.ts
parent27bb73c701d812b6ce85d230cd1433d8f6d51528 (diff)
downloadvoidsky-5d92ac2ce3eeb0e6d8f1c1f1ca2941dde74756ee.tar.zst
dont send message if >1000 graphemes (#3995)
Diffstat (limited to 'src/lib/constants.ts')
-rw-r--r--src/lib/constants.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/constants.ts b/src/lib/constants.ts
index 051ed4d59..05d1591f5 100644
--- a/src/lib/constants.ts
+++ b/src/lib/constants.ts
@@ -36,6 +36,8 @@ export const MAX_DESCRIPTION = 256
 
 export const MAX_GRAPHEME_LENGTH = 300
 
+export const MAX_DM_GRAPHEME_LENGTH = 1000
+
 // Recommended is 100 per: https://www.w3.org/WAI/GL/WCAG20/tests/test3.html
 // but increasing limit per user feedback
 export const MAX_ALT_TEXT = 1000