From fa2681c8868aa556f18d1ed37ec2cf5f2dab5dcc Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 19 Jun 2022 19:49:22 +0200 Subject: [PATCH] fix for fae784336 --- files/routes/posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 825e3ceda..b5d9ff796 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -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