mirror of https://github.com/pixelfed/pixelfed
Merge pull request #965 from pixelfed/frontend-ui-refactor
Update StatusDelete pipeline, fanout via AP if enabledpull/1005/head
commit
65769d93f4
@ -0,0 +1,25 @@
|
||||
<?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',
|
||||
]
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue