diff --git a/files/routes/users.py b/files/routes/users.py index d47ddc4e3..42b366b7b 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -1032,10 +1032,11 @@ def u_username_comments(username, v=None): listing = [] for x in comments: - x.replies2 = [] + if x.replies2 == None: x.replies2 = [] if x.parent_comment_id: x.parent_comment.replies2 = [x] x = x.parent_comment + if x.id in ids: continue listing.append(x) ids += [x.id for x in listing]