diff --git a/app/Transformer/Api/AccountTransformer.php b/app/Transformer/Api/AccountTransformer.php index 4b8e16976..8beb5b668 100644 --- a/app/Transformer/Api/AccountTransformer.php +++ b/app/Transformer/Api/AccountTransformer.php @@ -29,6 +29,7 @@ class AccountTransformer extends Fractal\TransformerAbstract 'following_count' => $profile->followingCount(), 'statuses_count' => (int) $profile->statusCount(), 'note' => $profile->bio ?? '', + 'note_text' => strip_tags($profile->bio), 'url' => $profile->url(), 'avatar' => $profile->avatarUrl(), 'website' => $profile->website, @@ -37,7 +38,8 @@ class AccountTransformer extends Fractal\TransformerAbstract 'created_at' => $profile->created_at->toJSON(), 'header_bg' => $profile->header_bg, 'last_fetched_at' => optional($profile->last_fetched_at)->toJSON(), - 'pronouns' => PronounService::get($profile->id) + 'pronouns' => PronounService::get($profile->id), + 'location' => $profile->location ]; }