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:
Cy 2020-06-01 02:45:41 +00:00 committed by Cy
parent f900be02f3
commit b306f38520
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,