dont run execute_under_siege on editing

pull/150/head
Aevann 2023-05-14 23:39:03 +03:00
parent ada7c713ab
commit 2685b844c1
2 changed files with 0 additions and 3 deletions

View File

@ -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!')

View File

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