forked from mirror/pixelfed
Update AP transformers, add DeleteActor activity
This commit is contained in:
parent
a969ca502f
commit
bcce1df6fc
1 changed files with 24 additions and 0 deletions
24
app/Transformer/ActivityPub/Verb/DeleteActor.php
Normal file
24
app/Transformer/ActivityPub/Verb/DeleteActor.php
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
<?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()
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue