[ActivityPub] Fix DELETE

This commit is contained in:
Diogo Cordeiro
2020-08-29 11:12:02 +01:00
committed by Diogo Peralta Cordeiro
parent af0366ed58
commit 751b23f6fe
11 changed files with 261 additions and 90 deletions

View File

@@ -365,10 +365,7 @@ class Activitypub_postman
*/
public function delete_note($notice)
{
$data = Activitypub_delete::delete_to_array(
$notice->getProfile()->getUri(),
Activitypub_notice::getUri($notice)
);
$data = Activitypub_delete::delete_to_array($notice);
$errors = [];
$data = json_encode($data, JSON_UNESCAPED_SLASHES);
foreach ($this->to_inbox() as $inbox) {