Fix thread issue
This commit is contained in:
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 = []
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user