Reduce limit when plaintext body is cut off

This commit is contained in:
Tulir Asokan 2025-05-14 17:18:02 +03:00
parent 9109047ef2
commit ac3f0c34cc

View file

@ -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