From d08d32c11cc712313f4c565193ee40d807399e11 Mon Sep 17 00:00:00 2001 From: autocommit Date: Mon, 1 Jun 2020 01:59:07 +0000 Subject: [PATCH] Maybe the root is getting filtered out? I can't imagine how, but...# --- brutaldon/threadtree.py | 1 + brutaldon/views.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/brutaldon/threadtree.py b/brutaldon/threadtree.py index bedc94b..eb12ab0 100644 --- a/brutaldon/threadtree.py +++ b/brutaldon/threadtree.py @@ -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() diff --git a/brutaldon/views.py b/brutaldon/views.py index 056807b..1decaec 100644 --- a/brutaldon/views.py +++ b/brutaldon/views.py @@ -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)