From de84de78aefd5425d5d6b1780ccd45869be7cb74 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 30 Dec 2024 17:50:22 -0500 Subject: [PATCH] discord title limit --- common/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/utils.py b/common/utils.py index d6534b26..a3b8a7c6 100644 --- a/common/utils.py +++ b/common/utils.py @@ -224,6 +224,8 @@ def discord_send(channel, content, **args) -> bool: dw = settings.DISCORD_WEBHOOKS.get(channel) if not dw: return False + if "thread_name" in args: + args["thread_name"] = args["thread_name"][:99] webhook = SyncWebhook.from_url(dw) webhook.send(content, **args) return True