Merge pull request #4613 from pixelfed/staging

Update Profile AP transformer, fix context
This commit is contained in:
daniel 2023-08-24 23:55:09 -06:00 committed by GitHub
commit 5dc397ec1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,9 +15,8 @@ class ProfileTransformer extends Fractal\TransformerAbstract
'https://w3id.org/security/v1', 'https://w3id.org/security/v1',
'https://www.w3.org/ns/activitystreams', 'https://www.w3.org/ns/activitystreams',
[ [
'manuallyApprovesFollowers' => 'as:manuallyApprovesFollowers',
'pixelfed' => 'http://pixelfed.org/ns#', 'pixelfed' => 'http://pixelfed.org/ns#',
'schema' => 'http://schema.org/', 'manuallyApprovesFollowers' => 'as:manuallyApprovesFollowers',
'alsoKnownAs' => [ 'alsoKnownAs' => [
'@id' => 'as:alsoKnownAs', '@id' => 'as:alsoKnownAs',
'@type' => '@id' '@type' => '@id'
@ -26,10 +25,7 @@ class ProfileTransformer extends Fractal\TransformerAbstract
'@id' => 'as:movedTo', '@id' => 'as:movedTo',
'@type' => '@id' '@type' => '@id'
], ],
'indexable' => [ 'indexable' => 'pixelfed:indexable',
'@id' => 'pixelfed:indexable',
'@type' => 'schema:Boolean'
]
], ],
], ],
'id' => $profile->permalink(), 'id' => $profile->permalink(),