From 838afa93e8f5c9df55557bcbbadcb3d5d617f950 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 21 Jun 2022 16:34:50 +0200 Subject: [PATCH] stop my autoupvote --- files/routes/posts.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 987d7f694..bc0c72ef0 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -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)