pixelfed/app/Transformer/ActivityPub/Verb/DeleteNote.php
2019-03-05 18:26:02 -07:00

27 lines
529 B
PHP

<?php
namespace App\Transformer\ActivityPub\Verb;
use App\Status;
use League\Fractal;
class DeleteNote extends Fractal\TransformerAbstract
{
public function transform(Status $status)
{
return [
'@context' => [
'https://www.w3.org/ns/activitystreams',
'https://w3id.org/security/v1',
],
'id' => $status->permalink('#delete'),
'type' => 'Delete',
'actor' => $status->profile->permalink(),
'object' => [
'id' => $status->url(),
'type' => 'Tombstone'
]
];
}
}