From 5dccddb496bddd5e93581097497c431f65985cb4 Mon Sep 17 00:00:00 2001 From: southfox Date: Fri, 28 Apr 2023 15:24:28 +0800 Subject: [PATCH] [perf] follow outbox add activity_ap_id --- app/boxes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/boxes.py b/app/boxes.py index 1edb24a..fcf90cc 100644 --- a/app/boxes.py +++ b/app/boxes.py @@ -340,6 +340,7 @@ async def _send_follow( follow_id, out, relates_to_actor_id=actor.id, # type: ignore + activity_object_ap_id=actor.ap_id ) await ap.post( @@ -489,6 +490,7 @@ async def save_to_outbox( db_session : AsyncSession, outbox_id : str, ap_object : dict, + activity_object_ap_id: str | None = None, relates_to_inbox_object_id: int | None = None, relates_to_outbox_object_id: int | None = None, relates_to_actor_id: int | None = None, @@ -503,6 +505,7 @@ async def save_to_outbox( ap_id=ap_id, ap_type=ap_type, visibility =visibility, + activity_object_ap_id=activity_object_ap_id, relates_to_inbox_object_id=relates_to_inbox_object_id, relates_to_outbox_object_id=relates_to_outbox_object_id, relates_to_actor_id=relates_to_actor_id,