2019-03-06 01:06:23 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Transformer\ActivityPub\Verb;
|
|
|
|
|
|
|
|
use App\Status;
|
|
|
|
use League\Fractal;
|
|
|
|
|
|
|
|
class DeleteNote extends Fractal\TransformerAbstract
|
|
|
|
{
|
|
|
|
public function transform(Status $status)
|
|
|
|
{
|
2019-03-06 01:17:13 +00:00
|
|
|
return [
|
2022-05-14 09:24:40 +00:00
|
|
|
'@context' => 'https://www.w3.org/ns/activitystreams',
|
2019-03-06 01:06:23 +00:00
|
|
|
'id' => $status->permalink('#delete'),
|
|
|
|
'type' => 'Delete',
|
|
|
|
'actor' => $status->profile->permalink(),
|
|
|
|
'object' => [
|
2019-03-06 01:26:02 +00:00
|
|
|
'id' => $status->url(),
|
2019-03-06 01:13:57 +00:00
|
|
|
'type' => 'Tombstone'
|
2019-03-06 01:06:23 +00:00
|
|
|
]
|
2019-03-06 01:17:13 +00:00
|
|
|
];
|
2019-03-06 01:06:23 +00:00
|
|
|
}
|
|
|
|
|
2022-05-14 09:24:40 +00:00
|
|
|
}
|