forked from rDrama/rDrama
master
parent
9fd6ca1816
commit
571ae603c7
|
@ -349,6 +349,7 @@ def comment(v:User):
|
||||||
vote = CommentVote(user_id=v.id,
|
vote = CommentVote(user_id=v.id,
|
||||||
comment_id=c.id,
|
comment_id=c.id,
|
||||||
vote_type=1,
|
vote_type=1,
|
||||||
|
coins=0
|
||||||
)
|
)
|
||||||
g.db.add(vote)
|
g.db.add(vote)
|
||||||
cache.delete_memoized(comment_idlist)
|
cache.delete_memoized(comment_idlist)
|
||||||
|
|
|
@ -610,7 +610,8 @@ def submit_post(v:User, sub=None):
|
||||||
|
|
||||||
vote = Vote(user_id=v.id,
|
vote = Vote(user_id=v.id,
|
||||||
vote_type=1,
|
vote_type=1,
|
||||||
submission_id=p.id
|
submission_id=p.id,
|
||||||
|
coins=0
|
||||||
)
|
)
|
||||||
g.db.add(vote)
|
g.db.add(vote)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue