diff --git a/files/routes/comments.py b/files/routes/comments.py index d9e06fad27..aa37a28202 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -583,6 +583,8 @@ def api_comment(v): parent_post.comment_count = g.db.query(Comment).options(lazyload('*')).filter_by(parent_submission=parent_post.id).count() g.db.add(parent_post) + c.voted = 1 + g.db.commit() if request.headers.get("Authorization"): return c.json