forked from mirror/pixelfed
Update StatusService, fix bug in getFull method
This commit is contained in:
parent
88f7dc26bb
commit
4d8b4dcf35
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue