mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update AccountTransformer
This commit is contained in:
parent
4899ff3479
commit
6a80146b0c
1 changed files with 5 additions and 6 deletions
|
@ -28,21 +28,20 @@ class AccountTransformer extends Fractal\TransformerAbstract
|
||||||
'followers_count' => $profile->followerCount(),
|
'followers_count' => $profile->followerCount(),
|
||||||
'following_count' => $profile->followingCount(),
|
'following_count' => $profile->followingCount(),
|
||||||
'statuses_count' => (int) $profile->statusCount(),
|
'statuses_count' => (int) $profile->statusCount(),
|
||||||
'note' => $profile->bio,
|
'note' => $profile->bio ?? '',
|
||||||
'url' => $profile->url(),
|
'url' => $profile->url(),
|
||||||
'avatar' => $profile->avatarUrl(),
|
'avatar' => $profile->avatarUrl(),
|
||||||
'avatar_static' => $profile->avatarUrl(),
|
'avatar_static' => $profile->avatarUrl(),
|
||||||
'header' => null,
|
'header' => '',
|
||||||
'header_static' => null,
|
'header_static' => '',
|
||||||
'header_bg' => $profile->header_bg,
|
'header_bg' => $profile->header_bg,
|
||||||
|
'emojis' => [],
|
||||||
'moved' => null,
|
'moved' => null,
|
||||||
'fields' => null,
|
'fields' => null,
|
||||||
'bot' => null,
|
'bot' => false,
|
||||||
'website' => $profile->website,
|
'website' => $profile->website,
|
||||||
'software' => 'pixelfed',
|
'software' => 'pixelfed',
|
||||||
'is_admin' => (bool) $is_admin,
|
'is_admin' => (bool) $is_admin,
|
||||||
'last_status_at' => null,
|
|
||||||
'emojis' => null,
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue