mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-24 21:40:47 +00:00
Update AP Note verb transformer
This commit is contained in:
parent
2c110283f9
commit
75d16ad99c
1 changed files with 1 additions and 7 deletions
|
@ -30,12 +30,6 @@ class CreateNote extends Fractal\TransformerAbstract
|
|||
'@context' => [
|
||||
'https://www.w3.org/ns/activitystreams',
|
||||
'https://w3id.org/security/v1',
|
||||
[
|
||||
'manuallyApprovesFollowers' => 'as:manuallyApprovesFollowers',
|
||||
'featured' => [
|
||||
'https://pixelfed.org/ns#featured' => ['@type' => '@id'],
|
||||
],
|
||||
],
|
||||
],
|
||||
'id' => $status->permalink(),
|
||||
'type' => 'Create',
|
||||
|
@ -57,7 +51,7 @@ class CreateNote extends Fractal\TransformerAbstract
|
|||
'sensitive' => (bool) $status->is_nsfw,
|
||||
'attachment' => $status->media->map(function ($media) {
|
||||
return [
|
||||
'type' => 'Document',
|
||||
'type' => $media->activityVerb(),
|
||||
'mediaType' => $media->mime,
|
||||
'url' => $media->url(),
|
||||
'name' => null,
|
||||
|
|
Loading…
Reference in a new issue