Update AdminApiController

This commit is contained in:
Daniel Supernault 2024-07-17 04:16:33 -06:00
parent b0365b3494
commit 0aafb863e8
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1
1 changed files with 5 additions and 2 deletions

View File

@ -277,13 +277,16 @@ class AdminApiController extends Controller
$r['status'] = $status; $r['status'] = $status;
if($status['in_reply_to_id']) { if(isset($status['in_reply_to_id'])) {
$r['parent'] = StatusService::get($status['in_reply_to_id'], false); $r['parent'] = StatusService::get($status['in_reply_to_id'], false);
} }
} }
if($report->object_type === 'App\\Profile') { if($report->object_type === 'App\\Profile') {
$r['account'] = AccountService::get($report->object_id, false); $acct = AccountService::get($report->object_id, false);
if($acct) {
$r['account'] = $acct;
}
} }
return $r; return $r;
}) })