Fix thread issue

master
Thomas Sileo 2018-07-11 23:49:43 +02:00
rodzic 63ca0b68e1
commit 6b464d2a6d
1 zmienionych plików z 4 dodań i 2 usunięć

6
app.py
Wyświetl plik

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