1
0
Fork 0

Update ProfileTransformer

This commit is contained in:
Daniel Supernault 2018-12-12 13:56:46 -07:00
parent aecba4049a
commit c7e030cb30
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 1 additions and 4 deletions

View File

@ -15,9 +15,6 @@ class ProfileTransformer extends Fractal\TransformerAbstract
'https://w3id.org/security/v1', 'https://w3id.org/security/v1',
[ [
'manuallyApprovesFollowers' => 'as:manuallyApprovesFollowers', 'manuallyApprovesFollowers' => 'as:manuallyApprovesFollowers',
'featured' => [
'https://pixelfed.org/ns#featured' => ['@type' => '@id'],
],
], ],
], ],
'id' => $profile->permalink(), 'id' => $profile->permalink(),
@ -26,7 +23,7 @@ class ProfileTransformer extends Fractal\TransformerAbstract
'followers' => $profile->permalink('/followers'), 'followers' => $profile->permalink('/followers'),
'inbox' => $profile->permalink('/inbox'), 'inbox' => $profile->permalink('/inbox'),
'outbox' => $profile->permalink('/outbox'), 'outbox' => $profile->permalink('/outbox'),
'featured' => $profile->permalink('/collections/featured'), //'featured' => $profile->permalink('/collections/featured'),
'preferredUsername' => $profile->username, 'preferredUsername' => $profile->username,
'name' => $profile->name, 'name' => $profile->name,
'summary' => $profile->bio, 'summary' => $profile->bio,