From 3140adfbdb5c673b5f5927bebca08ebb5551dca7 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 20 Aug 2022 15:05:02 +0200 Subject: [PATCH] small change to can_see logic --- files/classes/comment.py | 2 +- files/classes/submission.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/classes/comment.py b/files/classes/comment.py index 1ec92391f..110fba53a 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -90,9 +90,9 @@ class Comment(Base): if not self.parent_submission: return True if self.post.sub != 'chudrama': return True if v: + if v.truecoins >= 5000: return True if v.id == self.author_id: return True if v.id == self.post.author_id: return True - if v and v.truecoins >= 5000: return True return False diff --git a/files/classes/submission.py b/files/classes/submission.py index ec2cd7eed..3139800d9 100644 --- a/files/classes/submission.py +++ b/files/classes/submission.py @@ -82,8 +82,8 @@ class Submission(Base): if SITE != 'rdrama.net': return True if self.sub != 'chudrama': return True if v: + if v.truecoins >= 5000: return True if v.id == self.author_id: return True - if v and v.truecoins >= 5000: return True return False @property