Code cleanup
This commit is contained in:
@@ -146,11 +146,11 @@ def _build_thread(data, include_children=True, query=None): # noqa: C901
|
||||
query = {}
|
||||
data["_requested"] = True
|
||||
app.logger.info(f"_build_thread({data!r})")
|
||||
root_id = data["meta"].get(MetaKey.THREAD_ROOT_PARENT.value)
|
||||
if not root_id:
|
||||
root_id = data["meta"].get(MetaKey.OBJECT_ID.value)
|
||||
if not root_id:
|
||||
root_id = data["remote_id"]
|
||||
root_id = (
|
||||
data["meta"].get(MetaKey.THREAD_ROOT_PARENT.value)
|
||||
or data["meta"].get(MetaKey.OBJECT_ID.value)
|
||||
or data["remote_id"]
|
||||
)
|
||||
|
||||
replies = [data]
|
||||
for dat in find_activities(
|
||||
|
Reference in New Issue
Block a user