From 0aafb863e8aa2250001668612bf193ef6b4bfcf8 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 17 Jul 2024 04:16:33 -0600 Subject: [PATCH] Update AdminApiController --- app/Http/Controllers/Api/AdminApiController.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Api/AdminApiController.php b/app/Http/Controllers/Api/AdminApiController.php index 69ba54cee..d70601d91 100644 --- a/app/Http/Controllers/Api/AdminApiController.php +++ b/app/Http/Controllers/Api/AdminApiController.php @@ -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; })