Fix: Comment context links sometimes don't show the comment if a parent comment is shadowbanned.
This commit is contained in:
parent
5f76bbf921
commit
7589d3d6d7
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ class Comment(CreatedBase):
|
|||
elif self.parent_submission: return f"post_{self.parent_submission}"
|
||||
|
||||
def replies(self, user):
|
||||
if self.replies2 != None: return [x for x in self.replies2 if not x.author.shadowbanned]
|
||||
if self.replies2 != None: return [x for x in self.replies2 if not x.author.shadowbanned or x.descendant_count > 0]
|
||||
author_id = None
|
||||
if user:
|
||||
author_id = user.id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue