mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-02-03 18:30: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' => [
|
'@context' => [
|
||||||
'https://www.w3.org/ns/activitystreams',
|
'https://www.w3.org/ns/activitystreams',
|
||||||
'https://w3id.org/security/v1',
|
'https://w3id.org/security/v1',
|
||||||
[
|
|
||||||
'manuallyApprovesFollowers' => 'as:manuallyApprovesFollowers',
|
|
||||||
'featured' => [
|
|
||||||
'https://pixelfed.org/ns#featured' => ['@type' => '@id'],
|
|
||||||
],
|
|
||||||
],
|
|
||||||
],
|
],
|
||||||
'id' => $status->permalink(),
|
'id' => $status->permalink(),
|
||||||
'type' => 'Create',
|
'type' => 'Create',
|
||||||
|
@ -57,7 +51,7 @@ class CreateNote extends Fractal\TransformerAbstract
|
||||||
'sensitive' => (bool) $status->is_nsfw,
|
'sensitive' => (bool) $status->is_nsfw,
|
||||||
'attachment' => $status->media->map(function ($media) {
|
'attachment' => $status->media->map(function ($media) {
|
||||||
return [
|
return [
|
||||||
'type' => 'Document',
|
'type' => $media->activityVerb(),
|
||||||
'mediaType' => $media->mime,
|
'mediaType' => $media->mime,
|
||||||
'url' => $media->url(),
|
'url' => $media->url(),
|
||||||
'name' => null,
|
'name' => null,
|
||||||
|
|
Loading…
Reference in a new issue