forked from MarseyWorld/MarseyWorld
fix duplicate comments in /@<user>/comments
parent
bcf1810b7b
commit
5b8da52ab8
|
@ -1032,10 +1032,11 @@ def u_username_comments(username, v=None):
|
||||||
listing = []
|
listing = []
|
||||||
|
|
||||||
for x in comments:
|
for x in comments:
|
||||||
x.replies2 = []
|
if x.replies2 == None: x.replies2 = []
|
||||||
if x.parent_comment_id:
|
if x.parent_comment_id:
|
||||||
x.parent_comment.replies2 = [x]
|
x.parent_comment.replies2 = [x]
|
||||||
x = x.parent_comment
|
x = x.parent_comment
|
||||||
|
if x.id in ids: continue
|
||||||
listing.append(x)
|
listing.append(x)
|
||||||
|
|
||||||
ids += [x.id for x in listing]
|
ids += [x.id for x in listing]
|
||||||
|
|
Loading…
Reference in New Issue