diff --git a/files/routes/front.py b/files/routes/front.py index 3497a992e..8be11349b 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -42,7 +42,7 @@ def notifications(v): c._is_blocking = False if c.parent_submission and c.parent_comment and c.parent_comment.author_id == v.id: c.replies = [] - while c.parent_comment: + while c.parent_comment and c.parent_comment.author_id == v.id: parent = c.parent_comment if c not in parent.replies2: parent.replies2 = parent.replies2 + [c]