Update DeleteNote transformer

This commit is contained in:
Daniel Supernault 2019-03-05 18:26:02 -07:00
parent 11b4c8dd3a
commit 490ab045ef
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -10,7 +10,7 @@ class DeleteNote extends Fractal\TransformerAbstract
public function transform(Status $status)
{
return [
'@context' => [
'@context' => [
'https://www.w3.org/ns/activitystreams',
'https://w3id.org/security/v1',
],
@ -18,7 +18,7 @@ class DeleteNote extends Fractal\TransformerAbstract
'type' => 'Delete',
'actor' => $status->profile->permalink(),
'object' => [
'id' => $status->permalink(),
'id' => $status->url(),
'type' => 'Tombstone'
]
];