fix 500 error

master
Aevann1 2022-10-21 13:30:32 +02:00
parent 05e8dec716
commit 7733449169
1 changed files with 2 additions and 2 deletions

View File

@ -904,8 +904,8 @@ def submit_post(v, sub=None):
g.db.add(post)
g.db.flush()
for text in [p.body, p.title, p.url]:
if not execute_blackjack(v, p, text, 'submission'): break
for text in [post.body, post.title, post.url]:
if not execute_blackjack(v, post, text, 'submission'): break
for option in options:
option = SubmissionOption(