forked from mirror/pixelfed
Merge pull request #967 from pixelfed/frontend-ui-refactor
Update AP transformer, fix typo
This commit is contained in:
commit
f19cf9c4e1
1 changed files with 3 additions and 1 deletions
|
@ -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'
|
||||||
]
|
]
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue