mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-21 04:23:16 +00:00
24 lines
482 B
PHP
24 lines
482 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',
|
|
'id' => $status->permalink('#delete'),
|
|
'type' => 'Delete',
|
|
'actor' => $status->profile->permalink(),
|
|
'object' => [
|
|
'id' => $status->url(),
|
|
'type' => 'Tombstone'
|
|
]
|
|
];
|
|
}
|
|
|
|
}
|