pixelfed/app/Transformer/ActivityPub/Verb/DeleteNote.php

25 lines
519 B
PHP
Raw Normal View History

<?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' => [
2019-03-06 01:13:57 +00:00
'id' => $status->permalink(),
'type' => 'Tombstone'
]
}
}