mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 21:24:28 +00:00
Tweak threads for ghost replies
This commit is contained in:
parent
140d7c5b5b
commit
e3b8c4f63c
1 changed files with 4 additions and 1 deletions
3
app.py
3
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"]
|
||||
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