Trying to figure out why only the root post is coming through

Is nothing in reply to the root post? Nothing at all?
This commit is contained in:
Cy 2020-06-01 01:50:17 +00:00 committed by Cy
parent 2308d65ec2
commit 933961b112
1 changed files with 5 additions and 2 deletions

View File

@ -692,7 +692,10 @@ def thread(request, id):
descendants = [
x for x in context.descendants if not toot_matches_filters(x, filters)
]
posts = tuple(threadtree.build(descendants))
from pprint import pprint
pprint(posts)
raise SystemExit(0)
return render(
request,
"main/thread.html",
@ -700,7 +703,7 @@ def thread(request, id):
"context": context,
"toot": toot,
"root": root,
"posts": tuple(threadtree.build(descendants)),
"posts": posts,
"own_acct": request.session["active_user"],
"notifications": notifications,
"preferences": account.preferences,