mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-25 14:33:18 +00:00
19 lines
No EOL
407 B
PHP
19 lines
No EOL
407 B
PHP
<?php
|
|
|
|
namespace App\Transformer\ActivityPub\Verb;
|
|
|
|
use App\Status;
|
|
use League\Fractal;
|
|
|
|
class Announce extends Fractal\TransformerAbstract
|
|
{
|
|
public function transform(Status $status)
|
|
{
|
|
return [
|
|
'@context' => 'https://www.w3.org/ns/activitystreams',
|
|
'type' => 'Announce',
|
|
'actor' => $status->profile->permalink(),
|
|
'object' => $status->parent()->url()
|
|
];
|
|
}
|
|
} |