Fix delete

This commit is contained in:
Thomas Sileo 2018-07-29 17:19:06 +02:00
parent 1d1f8e7cf5
commit efc26fb2a0

2
app.py
View file

@ -1455,6 +1455,8 @@ def api_delete():
note = _user_api_get_note(from_outbox=True)
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)
return _user_api_response(activity=delete_id)