mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-23 05:34:28 +00:00
Fix delete
This commit is contained in:
parent
1d1f8e7cf5
commit
efc26fb2a0
1 changed files with 2 additions and 0 deletions
2
app.py
2
app.py
|
@ -1455,6 +1455,8 @@ def api_delete():
|
||||||
note = _user_api_get_note(from_outbox=True)
|
note = _user_api_get_note(from_outbox=True)
|
||||||
|
|
||||||
delete = note.build_delete()
|
delete = note.build_delete()
|
||||||
|
delete = ap.Delete(actor=ID, object=ap.Tombstone(id=note.id).to_dict(embed=True))
|
||||||
|
|
||||||
delete_id = tasks.post_to_outbox(delete)
|
delete_id = tasks.post_to_outbox(delete)
|
||||||
|
|
||||||
return _user_api_response(activity=delete_id)
|
return _user_api_response(activity=delete_id)
|
||||||
|
|
Loading…
Reference in a new issue