mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13:14:28 +00:00
Fix thread issue
This commit is contained in:
parent
63ca0b68e1
commit
6b464d2a6d
1 changed files with 4 additions and 2 deletions
6
app.py
6
app.py
|
@ -763,8 +763,10 @@ def _build_thread(data, include_children=True):
|
|||
if rep_id == root_id:
|
||||
continue
|
||||
reply_of = rep["activity"]["object"]["inReplyTo"]
|
||||
idx[reply_of]["_nodes"].append(rep)
|
||||
|
||||
try:
|
||||
idx[reply_of]["_nodes"].append(rep)
|
||||
except:
|
||||
pass
|
||||
# Flatten the tree
|
||||
thread = []
|
||||
|
||||
|
|
Loading…
Reference in a new issue