diff --git a/app/Services/StatusService.php b/app/Services/StatusService.php index 05f8939b..99bcee2b 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; }