another bug fix

This commit is contained in:
Ghostie 2025-01-05 22:44:43 -05:00
parent 44f72a44da
commit 1740649ff7

View File

@ -11,6 +11,11 @@ else if ($post instanceof App\Models\Announcement)
}
$actor = $display_post->get_actor ()->first ();
if (!$actor)
{
// TODO: Check why this happens
return;
}
if ($actor->user_id)
$actor_url = route ('users.show', [ 'user_name' => $actor->user->name ]);