1
0
Fork 0
forked from mirror/pixelfed
pixelfed/app/Transformer/ActivityPub/Verb/DeleteStory.php

26 lines
486 B
PHP
Raw Normal View History

2021-09-04 02:50:38 +00:00
<?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',
],
];
}
}