diff --git a/files/routes/front.py b/files/routes/front.py index 064eb821a..45581040a 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -94,8 +94,8 @@ def notifications(v): Notification.read == False, Notification.user_id == v.id, Comment.author_id != AUTOJANNY_ID, - Comment.body_html.notlike('

New rdrama mention:

New rdrama mention: 50) - comments = comments[:50] + next_exists = (len(comments) > 25) + comments = comments[:25] cids = set() listing = [] for c in comments: if c.parent_submission: - c.replies2 = [x for x in all if x.parent_comment_id == c.id] + c.replies2 = [x for x in c.child_comments if c.author_id == v.id or x.id in all] cids = cids | set(x.id for x in c.replies2) while c.parent_comment and (c.parent_comment.author_id == v.id or c.parent_comment in comments): c = c.parent_comment - c.replies2 = [x for x in all if x.parent_comment_id == c.id] + c.replies2 = [x for x in c.child_comments if c.author_id == v.id or x.id in all] cids = cids | set(x.id for x in c.replies2) cids.add(c.id) else: