mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-14 18:54:27 +00:00
Fix reply filtering
This commit is contained in:
parent
612656d75b
commit
777b086d4f
1 changed files with 3 additions and 1 deletions
|
@ -545,7 +545,9 @@ def task_process_reply() -> _Response:
|
|||
app.logger.info(f"root_reply={reply!r} for activity={activity!r}")
|
||||
|
||||
# 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 ""
|
||||
|
||||
# In case the activity was from the inbox
|
||||
|
|
Loading…
Reference in a new issue