mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-11 00:54:50 +00:00
25 lines
580 B
PHP
25 lines
580 B
PHP
<?php
|
|
|
|
namespace App\Transformer\ActivityPub\Verb;
|
|
|
|
use App\Profile;
|
|
use League\Fractal;
|
|
|
|
class DeleteActor extends Fractal\TransformerAbstract
|
|
{
|
|
public function transform(Profile $profile)
|
|
{
|
|
return [
|
|
'@context' => 'https://www.w3.org/ns/activitystreams',
|
|
'id' => $profile->permalink('#delete'),
|
|
'type' => 'Delete',
|
|
'actor' => $profile->permalink(),
|
|
'to' => [
|
|
'https://www.w3.org/ns/activitystreams#Public'
|
|
],
|
|
'object' => $profile->permalink()
|
|
];
|
|
}
|
|
|
|
}
|