diff --git a/files/routes/comments.py b/files/routes/comments.py index 414ea7758..232e6196d 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -349,6 +349,7 @@ def comment(v:User): vote = CommentVote(user_id=v.id, comment_id=c.id, vote_type=1, + coins=0 ) g.db.add(vote) cache.delete_memoized(comment_idlist) diff --git a/files/routes/posts.py b/files/routes/posts.py index e2aef59eb..547d62907 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -610,7 +610,8 @@ def submit_post(v:User, sub=None): vote = Vote(user_id=v.id, vote_type=1, - submission_id=p.id + submission_id=p.id, + coins=0 ) g.db.add(vote)