stop my autoupvote

remotes/1693045480750635534/spooky-22
Aevann1 2022-06-21 16:34:50 +02:00
parent c91f09b83f
commit 838afa93e8
1 changed files with 0 additions and 10 deletions

View File

@ -1265,16 +1265,6 @@ def submit_post(v, sub=None):
post.upvotes += 3
g.db.add(post)
if post.sub and AEVANN_ID and v.id != AEVANN_ID:
g.db.flush()
autovote = Vote(user_id=AEVANN_ID, submission_id=post.id, vote_type=1)
g.db.add(autovote)
v.coins += 1
v.truecoins += 1
g.db.add(v)
post.upvotes += 1
g.db.add(post)
g.db.commit()
cache.delete_memoized(frontlist)