From 52cfc52fd512892ef19574d20efbb4515c0048ab Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 10 Jul 2022 12:48:52 +0200 Subject: [PATCH] Tweak outgoing delete message --- app/boxes.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/boxes.py b/app/boxes.py index 292728f..cfb39ce 100644 --- a/app/boxes.py +++ b/app/boxes.py @@ -86,11 +86,14 @@ async def send_delete(db_session: AsyncSession, ap_object_id: str) -> None: delete_id = allocate_outbox_id() delete = { - "@context": ap.AS_CTX, + "@context": ap.AS_EXTENDED_CTX, "id": outbox_object_id(delete_id), "type": "Delete", "actor": ID, - "object": ap_object_id, + "object": { + "type": "Tombstone", + "id": ap_object_id, + }, } outbox_object = await save_outbox_object( db_session,