This commit is contained in:
Aevann1 2022-01-17 13:47:30 +02:00
parent 47d19b5b4e
commit 3c6426d071
7 changed files with 29 additions and 19 deletions

View file

@ -513,7 +513,7 @@ def api_comment(v):
c.voted = 1
if v.id in AUTO_UPVOTE_IDS:
if v.id == PIZZASHILL_ID:
autovote = CommentVote(user_id=CARP_ID, comment_id=c.id, vote_type=1)
g.db.add(autovote)
autovote = CommentVote(user_id=AEVANN_ID, comment_id=c.id, vote_type=1)
@ -525,6 +525,14 @@ def api_comment(v):
g.db.add(v)
c.upvotes += 3
g.db.add(c)
elif v.id == HIL_ID:
autovote = CommentVote(user_id=CARP_ID, comment_id=c.id, vote_type=1)
g.db.add(autovote)
v.coins += 1
v.truecoins += 1
g.db.add(v)
c.upvotes += 1
g.db.add(c)
g.db.commit()