From 564daed80514cf8e00223d3fc373aee96366edbb Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 31 Aug 2021 19:34:05 +0200 Subject: [PATCH] dffd --- files/routes/comments.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index 2b9ccf137f..ca21742d3a 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -286,8 +286,8 @@ def api_comment(v): c_aux = CommentAux( id=c.id, - body_html=body_html, - body=body + body_html=body_html[:20000], + body=body[:10000] ) g.db.add(c_aux) @@ -627,8 +627,8 @@ def edit_comment(cid, v): body_md = renderer.render(mistletoe.Document(body)) body_html = sanitize(body_md) - c.body = body - c.body_html = body_html + c.body = body[:10000] + c.body_html = body_html[:20000] if v.agendaposter and "trans lives matter" not in c.body_html.lower(): @@ -656,8 +656,8 @@ def edit_comment(cid, v): body_jannied_html = sanitize(body_md) c_aux = CommentAux( id=c_jannied.id, - body_html=body_jannied_html, - body=body + body_html=body_jannied_html[:20000], + body=body[:10000] ) g.db.add(c_aux) g.db.flush()