mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update AdminApiController
This commit is contained in:
parent
b0365b3494
commit
0aafb863e8
1 changed files with 5 additions and 2 deletions
|
@ -277,13 +277,16 @@ class AdminApiController extends Controller
|
|||
|
||||
$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);
|
||||
}
|
||||
}
|
||||
|
||||
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;
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue