The template prints out the root by itself

Right, the template is where the duplication of the root is, since now the root is just the first "descendant" in the tree.
This commit is contained in:
autocommit 2020-06-01 02:45:41 +00:00 committed by Cy
parent 593343ec03
commit 91c3b82152
No known key found for this signature in database
GPG Key ID: F66D599380F88521
2 changed files with 0 additions and 2 deletions

View File

@ -29,7 +29,6 @@ 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

View File

@ -699,7 +699,6 @@ def thread(request, id):
{
"context": context,
"toot": toot,
"root": root,
"toots": toots,
"own_acct": request.session["active_user"],
"notifications": notifications,