Tweak outgoing delete message
parent
3658e4cf09
commit
52cfc52fd5
|
@ -86,11 +86,14 @@ async def send_delete(db_session: AsyncSession, ap_object_id: str) -> None:
|
||||||
|
|
||||||
delete_id = allocate_outbox_id()
|
delete_id = allocate_outbox_id()
|
||||||
delete = {
|
delete = {
|
||||||
"@context": ap.AS_CTX,
|
"@context": ap.AS_EXTENDED_CTX,
|
||||||
"id": outbox_object_id(delete_id),
|
"id": outbox_object_id(delete_id),
|
||||||
"type": "Delete",
|
"type": "Delete",
|
||||||
"actor": ID,
|
"actor": ID,
|
||||||
"object": ap_object_id,
|
"object": {
|
||||||
|
"type": "Tombstone",
|
||||||
|
"id": ap_object_id,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
outbox_object = await save_outbox_object(
|
outbox_object = await save_outbox_object(
|
||||||
db_session,
|
db_session,
|
||||||
|
|
Loading…
Reference in New Issue