forked from mirror/pixelfed
Update ProfileTransformer
This commit is contained in:
parent
aecba4049a
commit
c7e030cb30
1 changed files with 1 additions and 4 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue