From 60d4b3a356f65e2b3ece42a5298efc434733c2b9 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 22 Aug 2021 21:33:06 +0200 Subject: [PATCH] fdfd --- files/routes/posts.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/routes/posts.py b/files/routes/posts.py index 811c407fd4..257917a20b 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -884,6 +884,9 @@ def submit_post(v): g.db.add(c) g.db.flush() + new_post.comment_count = g.db.query(Comment).filter_by(parent_submission=new_post.id).count() + g.db.add(new_post) + if "rdrama" in request.host: if v.id == 995: body = "fuck off carp" else: body = random.choice(snappyquotes)