[perf] follow outbox add activity_ap_id

This commit is contained in:
SouthFox 2023-04-28 15:24:28 +08:00
parent c21a792b2b
commit 5dccddb496

View file

@ -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,