Aevann 2023-03-12 11:40:30 +02:00
parent 9fd6ca1816
commit 571ae603c7
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -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)