let ppl see the replies if they participated in the thread before it got CC'd

remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-10-04 22:36:16 +02:00
parent d203b22461
commit 3e58cf64ce
1 changed files with 2 additions and 2 deletions

View File

@ -328,7 +328,7 @@ class Comment(Base):
@lazy
def realbody(self, v):
if self.post and self.post.club and not (v and (v.paid_dues or v.id in [self.author_id, self.post.author_id])): return f"<p>{CC} ONLY</p>"
if self.post and self.post.club and not (v and (v.paid_dues or v.id in [self.author_id, self.parent_comment.author_id, self.top_comment.author_id, self.post.author_id])): return f"<p>{CC} ONLY</p>"
body = self.body_html or ""
@ -392,7 +392,7 @@ class Comment(Base):
@lazy
def plainbody(self, v):
if self.post and self.post.club and not (v and (v.paid_dues or v.id in [self.author_id, self.post.author_id])): return f"<p>{CC} ONLY</p>"
if self.post and self.post.club and not (v and (v.paid_dues or v.id in [self.author_id, self.parent_comment.author_id, self.top_comment.author_id, self.post.author_id])): return f"<p>{CC} ONLY</p>"
body = self.body