Merge pull request #968 from pixelfed/frontend-ui-refactor

Update DeleteNote transformer
pull/1005/head
daniel 6 years ago committed by GitHub
commit aa5eff44f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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'
]
];

Loading…
Cancel
Save