From 3272de09352d1583ea817187d13a7a548e360296 Mon Sep 17 00:00:00 2001 From: winter Date: Fri, 20 Dec 2024 19:12:12 +0000 Subject: super ultra mega basic global timeline --- routes/actor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routes/actor.php') diff --git a/routes/actor.php b/routes/actor.php index 65a3837..8ebf1e2 100644 --- a/routes/actor.php +++ b/routes/actor.php @@ -9,7 +9,7 @@ use Digitigrade\Router; Router::getInstance()->mount('/user/:handle', function (array $args) { $actor = Actor::findLocalByHandle($args['handle']); - if ($actor == null) { + if ($actor == null || $actor->deleted) { throw new NotFound("i don't know any local user called " . $args['handle']); } if (isset($_SERVER['HTTP_ACCEPT']) && str_contains($_SERVER['HTTP_ACCEPT'], 'text/html')) { -- cgit v1.3