From 452cd691525686c857134d966948a678cb77b158 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 30 Nov 2021 16:34:41 +0200 Subject: [PATCH] fdfds --- files/routes/votes.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/files/routes/votes.py b/files/routes/votes.py index f149b367a..8ce874cb2 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -102,6 +102,7 @@ def api_vote_post(post_id, new, v): post.author.truecoins += 1 g.db.add(post.author) real = v.profileurl or v.namecolor != defaultcolor or v.customtitle + if real == None: real = False vote = Vote(user_id=v.id, vote_type=new, submission_id=post_id, @@ -169,8 +170,8 @@ def api_vote_comment(comment_id, new, v): comment.author.coins += 1 comment.author.truecoins += 1 g.db.add(comment.author) - real = (v.profileurl or v.customtitle) - print(real) + real = v.profileurl or v.namecolor != defaultcolor or v.customtitle + if real == None: real = False vote = CommentVote(user_id=v.id, vote_type=new, comment_id=comment_id,