From 49b3b938ee074603bafdcf2fb18aacd862ca600b Mon Sep 17 00:00:00 2001 From: Micha Ober Date: Sun, 31 Mar 2024 04:52:39 +0200 Subject: [PATCH] Adjust value of `MAX_POST_PREVIEW_LENGTH` --- acp/discord_notifications_module.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/acp/discord_notifications_module.php b/acp/discord_notifications_module.php index 69422e8..bd77416 100644 --- a/acp/discord_notifications_module.php +++ b/acp/discord_notifications_module.php @@ -18,9 +18,8 @@ class discord_notifications_module const MIN_POST_PREVIEW_LENGTH = 10; // The maximum number of characters that the user can set for the post preview setting. - // Note that this is slightly less than the actual allowed maximum by Discord (2048), but we reserve - // some space to prepend the preview text with something like "Preview: " or "Reason: " - const MAX_POST_PREVIEW_LENGTH = 2000; + // See: https://discord.com/developers/docs/resources/channel#embed-object-embed-limits + const MAX_POST_PREVIEW_LENGTH = 1024; // The name for the form used for this page const PAGE_FORM_NAME = 'acp_mober_discord_notifications';