From 7dfde0b2588364e7b785c20e5dcefe5069f7a842 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 22 Sep 2021 20:58:55 +0200 Subject: [PATCH] df --- files/routes/comments.py | 2 ++ 1 file changed, 2 insertions(+) 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