From c560e793d487d693e4b4755badfbe9b7b37487e4 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 4 Aug 2023 03:11:34 +0300 Subject: [PATCH] fix bug where edited post options didnt work unless u edit again --- files/routes/posts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index d40982ba0..733cafdcd 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -1066,8 +1066,6 @@ def edit_post(pid, v): p.body = body - process_poll_options(v, p) - for text in [p.body, p.title, p.url]: if execute_blackjack(v, p, text, 'post'): break @@ -1076,6 +1074,8 @@ def edit_post(pid, v): p.body_html = body_html + process_poll_options(v, p) + if not complies_with_chud(p): abort(403, f'You have to include "{v.chud_phrase}" in your post!')