From 4c5d400601749665065400d330591c5ceb484ab7 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Thu, 11 Apr 2019 00:04:32 +0200 Subject: [PATCH] Tweak threads --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index e981e85..752027f 100644 --- a/app.py +++ b/app.py @@ -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]