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.
25 lines
519 B
PHTML
25 lines
519 B
PHTML
6 years ago
|
<?php
|
||
|
|
||
|
namespace App\Transformer\ActivityPub\Verb;
|
||
|
|
||
|
use App\Status;
|
||
|
use League\Fractal;
|
||
|
|
||
|
class DeleteNote extends Fractal\TransformerAbstract
|
||
|
{
|
||
|
public function transform(Status $status)
|
||
|
{
|
||
|
'@context' => [
|
||
|
'https://www.w3.org/ns/activitystreams',
|
||
|
'https://w3id.org/security/v1',
|
||
|
],
|
||
|
'id' => $status->permalink('#delete'),
|
||
|
'type' => 'Delete',
|
||
|
'actor' => $status->profile->permalink(),
|
||
|
'object' => [
|
||
|
'id' => $status->permalink()
|
||
|
'type' => 'Tombstone',
|
||
|
]
|
||
|
}
|
||
|
|
||
|
}
|