mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-23 23:11:27 +00:00
25 lines
486 B
PHP
25 lines
486 B
PHP
<?php
|
|
|
|
namespace App\Transformer\ActivityPub\Verb;
|
|
|
|
use Storage;
|
|
use App\Story;
|
|
use League\Fractal;
|
|
use Illuminate\Support\Str;
|
|
|
|
class DeleteStory extends Fractal\TransformerAbstract
|
|
{
|
|
public function transform(Story $story)
|
|
{
|
|
return [
|
|
'@context' => 'https://www.w3.org/ns/activitystreams',
|
|
'id' => $story->url() . '#delete',
|
|
'type' => 'Delete',
|
|
'actor' => $story->profile->permalink(),
|
|
'object' => [
|
|
'id' => $story->url(),
|
|
'type' => 'Story',
|
|
],
|
|
];
|
|
}
|
|
}
|