From c90792d663eb50237601456f7747222d393d2a24 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 21 Mar 2022 02:40:15 +0200 Subject: [PATCH] fds --- 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 7fb2e8af5..d48659615 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -90,7 +90,7 @@ def api_vote_post(post_id, new, v): post.author.truecoins += 1 g.db.add(post.author) - if new == 1 and (v.agendaposter or v.shadowbanned or (v.is_banned and not v.unban_utc) or (v.profileurl.startswith('/e/') and not v.customtitle and v.namecolor == DEFAULT_COLOR)): real = False + if new == 1 and (v.agendaposter or v.shadowbanned or (v.is_banned and not v.unban_utc) or (v.profile_url.startswith('/e/') and not v.customtitle and v.namecolor == DEFAULT_COLOR)): real = False else: real = True vote = Vote(user_id=v.id, @@ -154,7 +154,7 @@ def api_vote_comment(comment_id, new, v): comment.author.truecoins += 1 g.db.add(comment.author) - if new == 1 and (v.agendaposter or v.shadowbanned or (v.is_banned and not v.unban_utc) or (v.profileurl.startswith('/e/') and not v.customtitle and v.namecolor == DEFAULT_COLOR)): real = False + if new == 1 and (v.agendaposter or v.shadowbanned or (v.is_banned and not v.unban_utc) or (v.profile_url.startswith('/e/') and not v.customtitle and v.namecolor == DEFAULT_COLOR)): real = False else: real = True vote = CommentVote(user_id=v.id,