another bug fix
This commit is contained in:
parent
44f72a44da
commit
1740649ff7
@ -11,6 +11,11 @@ else if ($post instanceof App\Models\Announcement)
|
|||||||
}
|
}
|
||||||
|
|
||||||
$actor = $display_post->get_actor ()->first ();
|
$actor = $display_post->get_actor ()->first ();
|
||||||
|
if (!$actor)
|
||||||
|
{
|
||||||
|
// TODO: Check why this happens
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ($actor->user_id)
|
if ($actor->user_id)
|
||||||
$actor_url = route ('users.show', [ 'user_name' => $actor->user->name ]);
|
$actor_url = route ('users.show', [ 'user_name' => $actor->user->name ]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user