diff --git a/files/classes/comment.py b/files/classes/comment.py index f425226aff..0423a5d327 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -328,7 +328,8 @@ 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.parent_comment.author_id, self.top_comment.author_id, self.post.author_id])): return f"
{CC} ONLY
" + 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] or (self.parent_comment and v.id == self.parent_comment.author_id))): + return f"{CC} ONLY
" body = self.body_html or "" @@ -392,7 +393,8 @@ 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.parent_comment.author_id, self.top_comment.author_id, self.post.author_id])): return f"{CC} ONLY
" + 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] or (self.parent_comment and v.id == self.parent_comment.author_id))): + return f"{CC} ONLY" body = self.body diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 526e11d64b..d6ec18c8a1 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -220,7 +220,7 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=True, count_marseys sanitized = strikethrough_regex.sub(r'\1