From ac3f0c34ccbe40da91bc4955ab63d3a2b4d22f52 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 14 May 2025 17:18:02 +0300 Subject: [PATCH] Reduce limit when plaintext body is cut off --- maubot/matrix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maubot/matrix.py b/maubot/matrix.py index 87c7b70..a99c1a4 100644 --- a/maubot/matrix.py +++ b/maubot/matrix.py @@ -63,7 +63,7 @@ async def parse_formatted( else: return message, escape(message) text = (await MaubotHTMLParser().parse(html)).text - if len(text) + len(html) > 60000: + if len(text) + len(html) > 40000: text = text[:100] + "[long message cut off]" return text, html