forked from forks/microblog.pub
Tweak threads for ghost replies
This commit is contained in:
parent
140d7c5b5b
commit
e3b8c4f63c
1 changed files with 4 additions and 1 deletions
5
app.py
5
app.py
|
@ -902,7 +902,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 KeyError:
|
||||
app.logger.info(f"{reply_of} is not there! skipping {rep}")
|
||||
|
||||
# Flatten the tree
|
||||
thread = []
|
||||
|
|
Loading…
Reference in a new issue