Maybe the root is getting filtered out?

I can't imagine how, but...#
This commit is contained in:
Cy 2020-06-01 01:59:07 +00:00 committed by Cy
parent cc826ff400
commit e887978ab3
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ def maketree(descendants):
reps.add(descendant.id)
print("REPLY", descendant.id,
descendant.in_reply_to_id,
descendant.in_reply_to_account_id,
descendant.in_reply_to_id in lookup)
else:
reps = set()

View File

@ -692,7 +692,7 @@ def thread(request, id):
# descendants = [
# x for x in context.descendants if not toot_matches_filters(x, filters)
# ]
posts = tuple(threadtree.build(descendants))
posts = tuple(threadtree.build(context.descendants))
from pprint import pprint
pprint(posts)
raise SystemExit(0)