浏览代码

Update AccountTransformer

Daniel Supernault 5 年之前
父节点
当前提交
ac0ec74c3d
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      app/Transformer/Api/AccountTransformer.php

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

@@ -37,10 +37,9 @@ class AccountTransformer extends Fractal\TransformerAbstract
 			'header_bg' => $profile->header_bg,
 			'emojis' => [],
 			'moved' => null,
-			'fields' => null,
+			'fields' => [],
 			'bot' => false,
 			'website' => $profile->website,
-			'software' => 'pixelfed',
 			'is_admin' => (bool) $is_admin,
 		];
 	}