Reduce limit when plaintext body is cut off
This commit is contained in:
parent
9109047ef2
commit
ac3f0c34cc
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ async def parse_formatted(
|
||||||
else:
|
else:
|
||||||
return message, escape(message)
|
return message, escape(message)
|
||||||
text = (await MaubotHTMLParser().parse(html)).text
|
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]"
|
text = text[:100] + "[long message cut off]"
|
||||||
return text, html
|
return text, html
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue