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) reps.add(descendant.id)
print("REPLY", descendant.id, print("REPLY", descendant.id,
descendant.in_reply_to_id, descendant.in_reply_to_id,
descendant.in_reply_to_account_id,
descendant.in_reply_to_id in lookup) descendant.in_reply_to_id in lookup)
else: else:
reps = set() reps = set()

View File

@ -692,7 +692,7 @@ def thread(request, id):
# descendants = [ # descendants = [
# x for x in context.descendants if not toot_matches_filters(x, filters) # 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 from pprint import pprint
pprint(posts) pprint(posts)
raise SystemExit(0) raise SystemExit(0)