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:
Cy 2020-06-01 02:44:44 +00:00 committed by Cy
parent 2cf2e777d4
commit f900be02f3
1 changed files with 1 additions and 0 deletions

View File

@ -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