mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-14 18:54:27 +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 = {
|
||||
"@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,
|
||||
|
|
Loading…
Reference in a new issue