From c94ffa3adf068ebedd7c7cf96c7e50891519397b Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 3 Dec 2021 21:05:54 +0200 Subject: [PATCH] fdfd --- files/routes/votes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/votes.py b/files/routes/votes.py index 3b3b574bd..a03e16ca0 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -101,7 +101,7 @@ def api_vote_post(post_id, new, v): post.author.coins += 1 post.author.truecoins += 1 g.db.add(post.author) - real = bool(v.profileurl) or bool(v.customtitle) or v.namecolor != defaultcolor + real = bool(v.profileurl) or bool(v.customtitle) or v.namecolor != defaultcolor and not v.agendaposter and not v.shadowbanned vote = Vote(user_id=v.id, vote_type=new, submission_id=post_id, @@ -169,7 +169,7 @@ def api_vote_comment(comment_id, new, v): comment.author.coins += 1 comment.author.truecoins += 1 g.db.add(comment.author) - real = bool(v.profileurl) or bool(v.customtitle) or v.namecolor != defaultcolor + real = (bool(v.profileurl) or bool(v.customtitle) or v.namecolor != defaultcolor) and not v.agendaposter and not v.shadowbanned vote = CommentVote(user_id=v.id, vote_type=new, comment_id=comment_id,