1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-23 00:05:29 +00:00

Update Profile AP transformer, fix context

This commit is contained in:
Daniel Supernault 2023-08-24 23:54:08 -06:00
parent 23bc985b36
commit 817b494703
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

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