From 435079cb3a72dd413a6d93fde03cc8559554adbd Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 30 Sep 2019 00:55:29 -0600 Subject: [PATCH 1/2] Update changelog --- CHANGELOG.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index baf201a1f..bf1f17569 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,15 @@ # Release Notes -## [Unreleased](https://github.com/pixelfed/pixelfed/compare/v0.10.5...dev) +## [Unreleased](https://github.com/pixelfed/pixelfed/compare/v0.10.6...dev) + +### Added + +### Fixed + +### Changed + + +## [v0.10.6 (2019-09-30)](https://github.com/pixelfed/pixelfed/compare/v0.10.5...v0.10.6) ### Added - Added ```/api/v1/accounts/update_credentials``` endpoint [6afd6970](https://github.com/pixelfed/pixelfed/commit/6afd6970) From 4d084ac5de67936750277f0ae13effd5a1ef3799 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 30 Sep 2019 00:55:49 -0600 Subject: [PATCH 2/2] Update AccountTransformer --- app/Transformer/Api/AccountTransformer.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/app/Transformer/Api/AccountTransformer.php b/app/Transformer/Api/AccountTransformer.php index 47506410e..564d653a6 100644 --- a/app/Transformer/Api/AccountTransformer.php +++ b/app/Transformer/Api/AccountTransformer.php @@ -9,7 +9,7 @@ use League\Fractal; class AccountTransformer extends Fractal\TransformerAbstract { protected $defaultIncludes = [ - 'relationship', + // 'relationship', ]; public function transform(Profile $profile) @@ -24,23 +24,13 @@ class AccountTransformer extends Fractal\TransformerAbstract 'acct' => $acct, 'display_name' => $profile->name, 'locked' => (bool) $profile->is_private, - 'created_at' => $profile->created_at->format('c'), 'followers_count' => $profile->followerCount(), 'following_count' => $profile->followingCount(), 'statuses_count' => (int) $profile->statusCount(), 'note' => $profile->bio ?? '', 'url' => $profile->url(), 'avatar' => $profile->avatarUrl(), - 'avatar_static' => $profile->avatarUrl(), - 'header' => '', - 'header_static' => '', - 'header_bg' => $profile->header_bg, - 'emojis' => [], - 'moved' => null, - 'fields' => [], - 'bot' => false, 'website' => $profile->website, - 'software' => 'pixelfed', 'is_admin' => (bool) $is_admin, ]; }