mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
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)
|
public static function getFull($id, $pid, $publicOnly = true)
|
||||||
{
|
{
|
||||||
$res = self::get($id, $publicOnly);
|
$res = self::get($id, $publicOnly);
|
||||||
|
if(!$res || !isset($res['account']) || !isset($res['account']['id'])) {
|
||||||
|
return $res;
|
||||||
|
}
|
||||||
$res['relationship'] = RelationshipService::get($pid, $res['account']['id']);
|
$res['relationship'] = RelationshipService::get($pid, $res['account']['id']);
|
||||||
return $res;
|
return $res;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue