From 725179dc6c49d25e306cfe622f6f2f61dcd26771 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 20 Aug 2022 02:10:13 +0200 Subject: [PATCH] add exception in can_see for offsites --- files/classes/comment.py | 1 + files/classes/submission.py | 1 + 2 files changed, 2 insertions(+) diff --git a/files/classes/comment.py b/files/classes/comment.py index 08f08347e..1ec92391f 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -86,6 +86,7 @@ class Comment(Base): @lazy def can_see(self, v): + if SITE != 'rdrama.net': return True if not self.parent_submission: return True if self.post.sub != 'chudrama': return True if v: diff --git a/files/classes/submission.py b/files/classes/submission.py index b200acac5..ec2cd7eed 100644 --- a/files/classes/submission.py +++ b/files/classes/submission.py @@ -79,6 +79,7 @@ class Submission(Base): @lazy def can_see(self, v): + if SITE != 'rdrama.net': return True if self.sub != 'chudrama': return True if v: if v.id == self.author_id: return True