1
0
Fork 0
forked from mirror/pixelfed

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

View file

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