فهرست منبع

Update AccountTransformer, re-add header_bg field. Fixes #1933

Daniel Supernault 5 سال پیش
والد
کامیت
121b258dbb
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      app/Transformer/Api/AccountTransformer.php

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

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