From 4d8b4dcf3572ad6c7b15cf1b54b94803fdd2b038 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 24 May 2023 23:41:48 -0600 Subject: [PATCH] Update StatusService, fix bug in getFull method --- app/Services/StatusService.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Services/StatusService.php b/app/Services/StatusService.php index 05f8939b3..99bcee2b0 100644 --- a/app/Services/StatusService.php +++ b/app/Services/StatusService.php @@ -121,6 +121,9 @@ class StatusService public static function getFull($id, $pid, $publicOnly = true) { $res = self::get($id, $publicOnly); + if(!$res || !isset($res['account']) || !isset($res['account']['id'])) { + return $res; + } $res['relationship'] = RelationshipService::get($pid, $res['account']['id']); return $res; }