Fix thread issue

This commit is contained in:
Thomas Sileo 2018-07-11 23:49:43 +02:00
parent 63ca0b68e1
commit 6b464d2a6d

6
app.py
View file

@ -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 = []