Fix reply filtering

This commit is contained in:
Thomas Sileo 2019-08-17 10:02:36 +02:00
parent 612656d75b
commit 777b086d4f

View file

@ -545,7 +545,9 @@ def task_process_reply() -> _Response:
app.logger.info(f"root_reply={reply!r} for activity={activity!r}") app.logger.info(f"root_reply={reply!r} for activity={activity!r}")
# Ensure the "root reply" is present in the inbox/outbox # Ensure the "root reply" is present in the inbox/outbox
if not find_one_activity(by_object_id(root_reply)): if not find_one_activity(
{**by_object_id(root_reply), **by_type(ap.ActivityType.CREATE)}
):
return "" return ""
# In case the activity was from the inbox # In case the activity was from the inbox