mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-26 17:56:48 +00:00
Merge pull request #968 from pixelfed/frontend-ui-refactor
Update DeleteNote transformer
This commit is contained in:
commit
aa5eff44f8
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue