Why is the root post displaying twice?
I thought the root post only displayed once. Maybe it needs to be removed?
This commit is contained in:
parent
5095718192
commit
593343ec03
|
@ -29,6 +29,7 @@ def maketree(mastodon, root, descendants):
|
|||
descendant.in_reply_to_id,
|
||||
descendant.in_reply_to_account_id)
|
||||
seen = set()
|
||||
seen.add(root.id)
|
||||
def onelevel(reps):
|
||||
for rep in sorted(reps):
|
||||
if rep in seen: continue
|
||||
|
|
Loading…
Reference in New Issue