mirror of https://github.com/pixelfed/pixelfed
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
576 B
PHP
26 lines
576 B
PHP
<?php
|
|
|
|
namespace App\Transformer\ActivityPub\Verb;
|
|
|
|
use App\Models\Profile;
|
|
use League\Fractal;
|
|
|
|
class DeleteActor extends Fractal\TransformerAbstract
|
|
{
|
|
public function transform(Profile $profile): array
|
|
{
|
|
$actorId = $profile->permalink();
|
|
|
|
return [
|
|
'@context' => 'https://www.w3.org/ns/activitystreams',
|
|
'id' => $actorId.'#delete',
|
|
'type' => 'Delete',
|
|
'actor' => $actorId,
|
|
'object' => [
|
|
'id' => $actorId,
|
|
'type' => 'Person',
|
|
],
|
|
];
|
|
}
|
|
}
|