Browse Source

Merge pull request #1935 from pixelfed/staging

Update AccountTransformer, re-add header_bg field. Fixes #1933
daniel 5 years ago
parent
commit
2c4894d4dd
2 changed files with 3 additions and 1 deletions
  1. 1 0
      CHANGELOG.md
  2. 2 1
      app/Transformer/Api/AccountTransformer.php

+ 1 - 0
CHANGELOG.md

@@ -5,6 +5,7 @@
 
 ### Fixed
 - Fixed Story Compose bug affecting postgres instances ([#1918](https://github.com/pixelfed/pixelfed/pull/1918))
+- Fixed header background bug on MomentUI profiles ([#1933](https://github.com/pixelfed/pixelfed/pull/1933))
 
 
 ### Changed

+ 2 - 1
app/Transformer/Api/AccountTransformer.php

@@ -33,7 +33,8 @@ class AccountTransformer extends Fractal\TransformerAbstract
 			'website' => $profile->website,
 			'local' => (bool) $local,
 			'is_admin' => (bool) $is_admin,
-			'created_at' => $profile->created_at->timestamp
+			'created_at' => $profile->created_at->timestamp,
+			'header_bg' => $profile->header_bg
 		];
 	}