1
0
Fork 0
forked from mirror/pixelfed

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

Update AP transformer, fix typo
This commit is contained in:
daniel 2019-03-05 18:17:49 -07:00 committed by GitHub
commit f19cf9c4e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,8 @@ class DeleteNote extends Fractal\TransformerAbstract
{ {
public function transform(Status $status) public function transform(Status $status)
{ {
'@context' => [ return [
'@context' => [
'https://www.w3.org/ns/activitystreams', 'https://www.w3.org/ns/activitystreams',
'https://w3id.org/security/v1', 'https://w3id.org/security/v1',
], ],
@ -20,6 +21,7 @@ class DeleteNote extends Fractal\TransformerAbstract
'id' => $status->permalink(), 'id' => $status->permalink(),
'type' => 'Tombstone' 'type' => 'Tombstone'
] ]
];
} }
} }