Custom 500 and thread bugfix

This commit is contained in:
Thomas Sileo
2019-09-13 12:19:30 +02:00
parent 0fa6159c47
commit efc59f7e07
8 changed files with 16 additions and 8 deletions

View File

@@ -144,7 +144,8 @@ def _build_thread(data, include_children=True): # noqa: C901
data["_requested"] = True
app.logger.info(f"_build_thread({data!r})")
root_id = data["meta"].get(
MetaKey.THREAD_ROOT_PARENT.value, data["meta"][MetaKey.OBJECT_ID.value]
MetaKey.THREAD_ROOT_PARENT.value,
data["meta"].get(MetaKey.OBJECT_ID.value, data["meta"].get("remote_id")),
)
replies = [data]