Skip to content

Commit

Permalink
Update StatusService, fix bug in getFull method
Browse files Browse the repository at this point in the history
  • Loading branch information
dansup committed May 25, 2023
1 parent 88f7dc2 commit 4d8b4dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Services/StatusService.php
Expand Up @@ -121,6 +121,9 @@ public static function getState($id, $pid)
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;
}
Expand Down

0 comments on commit 4d8b4dc

Please sign in to comment.