fix bug where edited post options didnt work unless u edit again

pull/176/head
Aevann 2023-08-04 03:11:34 +03:00
parent a7f3dad605
commit c560e793d4
1 changed files with 2 additions and 2 deletions

View File

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