Maybe the root is getting filtered out?
I can't imagine how, but...#
This commit is contained in:
parent
cc826ff400
commit
e887978ab3
|
@ -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()
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue