From 1d55f36c232ceca892bb52b5a0e464557089a9d4 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 21 Jan 2022 23:47:33 +0200 Subject: [PATCH] fdsdfsfds --- files/routes/posts.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 12f89f955b..23a87efe83 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -996,8 +996,6 @@ def submit_post(v): n = Notification(comment_id=c_jannied.id, user_id=v.id) g.db.add(n) - new_post.comment_count = 1 - if v.id == CARP_ID: if random.random() < 0.02: body = "i love you carp" else: body = ":#marseyfuckoffcarp:" @@ -1057,7 +1055,8 @@ def submit_post(v): g.db.flush() n = Notification(comment_id=c.id, user_id=v.id) g.db.add(n) - + + new_post.comment_count += 1 v.post_count = g.db.query(Submission.id).filter_by(author_id=v.id, is_banned=False, deleted_utc=0).count() g.db.add(v)