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:
|
if rep_id == root_id:
|
||||||
continue
|
continue
|
||||||
reply_of = rep["activity"]["object"]["inReplyTo"]
|
reply_of = rep["activity"]["object"]["inReplyTo"]
|
||||||
idx[reply_of]["_nodes"].append(rep)
|
try:
|
||||||
|
idx[reply_of]["_nodes"].append(rep)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
# Flatten the tree
|
# Flatten the tree
|
||||||
thread = []
|
thread = []
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue