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)