Skip to content

Commit

Permalink
Update AP transformers, add DeleteActor activity
Browse files Browse the repository at this point in the history
  • Loading branch information
dansup committed Mar 8, 2024
1 parent a969ca5 commit bcce1df
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions app/Transformer/ActivityPub/Verb/DeleteActor.php
@@ -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()
];
}

}

0 comments on commit bcce1df

Please sign in to comment.