From 7733449169434083fbb7b9810f3d7a9d4830a66f Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 21 Oct 2022 13:30:32 +0200 Subject: [PATCH] fix 500 error --- 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 05688fd2f..63eca353b 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -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(