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:
parent
4ad3538017
commit
be1db47fe1
|
@ -692,7 +692,10 @@ 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))
|
||||||
|
from pprint import pprint
|
||||||
|
pprint(posts)
|
||||||
|
raise SystemExit(0)
|
||||||
return render(
|
return render(
|
||||||
request,
|
request,
|
||||||
"main/thread.html",
|
"main/thread.html",
|
||||||
|
@ -700,7 +703,7 @@ def thread(request, id):
|
||||||
"context": context,
|
"context": context,
|
||||||
"toot": toot,
|
"toot": toot,
|
||||||
"root": root,
|
"root": root,
|
||||||
"posts": tuple(threadtree.build(descendants)),
|
"posts": posts,
|
||||||
"own_acct": request.session["active_user"],
|
"own_acct": request.session["active_user"],
|
||||||
"notifications": notifications,
|
"notifications": notifications,
|
||||||
"preferences": account.preferences,
|
"preferences": account.preferences,
|
||||||
|
|
Loading…
Reference in New Issue