Update ApiV1Controller

This commit is contained in:
Daniel Supernault 2022-01-05 21:40:07 -07:00
parent 31d9e5fb9e
commit e825b07d88
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -143,13 +143,13 @@ class ApiV1Controller extends Controller
$res = AccountService::getMastodon($id);
$res['source'] = [
'privacy' => $res['locked'] ? 'private' : 'public',
'sensitive' => false,
'language' => null,
'note' => '',
'fields' => []
];
// $res['source'] = [
// 'privacy' => $res['locked'] ? 'private' : 'public',
// 'sensitive' => false,
// 'language' => null,
// 'note' => '',
// 'fields' => []
// ];
return response()->json($res);
}