From 96eacd73df4d969a618fa9f28ae54634c3201714 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 21 Jan 2023 02:40:32 +0200 Subject: [PATCH] same as last commit --- files/helpers/sanitize.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 81586b76a..6099ceb39 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -410,8 +410,10 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=True, count_marseys if '
' not in sanitized and not sidebar:
 		sanitized = sanitized.replace('\n','')
 
-	if showmore and len(sanitized) > 3500 or sanitized.count('<') > 15:
-		sanitized = showmore_regex.sub(r'\1

\4', sanitized, count=1) + # if showmore and len(sanitized) > 3500 or sanitized.count('<') > 15: + # sanitized = showmore_regex.sub(r'\1

\4', sanitized, count=1) + if showmore and len(sanitized) > 3500: + sanitized = showmore_regex.sub(r'\1

\2', sanitized, count=1) return sanitized.strip()