From 2685b844c1330b33dd3a2d538af240ff326e8178 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 14 May 2023 23:39:03 +0300 Subject: [PATCH] dont run execute_under_siege on editing --- files/routes/comments.py | 1 - files/routes/posts.py | 2 -- 2 files changed, 3 deletions(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index 86a72ab4e..105d83b5a 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -656,7 +656,6 @@ def edit_comment(cid, v): c.body_html = body_html execute_blackjack(v, c, c.body, "comment") - execute_under_siege(v, c, c.body, "comment") if not complies_with_chud(c): abort(403, f'You have to include "{v.agendaposter_phrase}" in your comment!') diff --git a/files/routes/posts.py b/files/routes/posts.py index 34d6c5dbb..c43f2d2b3 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -1046,8 +1046,6 @@ def edit_post(pid, v): process_poll_options(v, p) - execute_under_siege(v, p, p.body, 'post') - for text in [p.body, p.title, p.url]: if execute_blackjack(v, p, text, 'post'): break