mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13:14:28 +00:00
Tweak outgoing delete message
This commit is contained in:
parent
3658e4cf09
commit
52cfc52fd5
1 changed files with 5 additions and 2 deletions
|
@ -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 a new issue