fix for fae784336

remotes/1693045480750635534/spooky-22
Aevann1 2022-06-19 19:49:22 +02:00
parent 17c3fe9e4c
commit fa2681c886
1 changed files with 1 additions and 1 deletions

View File

@ -1265,7 +1265,7 @@ def submit_post(v, sub=None):
post.upvotes += 3
g.db.add(post)
if post.sub:
if post.sub and AEVANN_ID and v.id != AEVANN_ID:
autovote = Vote(user_id=AEVANN_ID, submission_id=post.id, vote_type=1)
g.db.add(autovote)
v.coins += 1