Add byte length checks to poll question and options during create

This commit is contained in:
ayumi-signal
2025-11-06 11:03:17 -08:00
committed by GitHub
parent 92f253f756
commit 7998e6c8bd
4 changed files with 47 additions and 11 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
import { unicodeSlice } from './unicodeSlice.std.js';
const KIBIBYTE = 1024;
const MAX_MESSAGE_BODY_BYTE_LENGTH = 2 * KIBIBYTE;
export const MAX_MESSAGE_BODY_BYTE_LENGTH = 2 * KIBIBYTE;
export const MAX_BODY_ATTACHMENT_BYTE_LENGTH = 64 * KIBIBYTE;