1
0
mirror of https://git.sr.ht/~tsileo/microblog.pub synced 2025-06-05 21:59:23 +02:00

Tweak threads

This commit is contained in:
Thomas Sileo
2019-04-11 00:04:32 +02:00
parent d2ce70df65
commit 4c5d400601

2
app.py
View File

@@ -838,7 +838,7 @@ def _build_thread(data, include_children=True): # noqa: C901
root_id = data["meta"].get("thread_root_parent", data["activity"]["object"]["id"])
query = {
"meta.thread_root_parent": root_id,
"$or": [{"meta.thread_root_parent": root_id}, {"activity.object.id": root_id}],
"meta.deleted": False,
}
replies = [data]