diff options
| author | winter | 2024-12-20 19:12:12 +0000 |
|---|---|---|
| committer | winter | 2024-12-20 19:12:12 +0000 |
| commit | 3272de09352d1583ea817187d13a7a548e360296 (patch) | |
| tree | 747d621c8e9543dbdf9b81bd751a8a6e153477f8 /routes/actor.php | |
| parent | d9ae605537792e93a535851c32d14393a645fc75 (diff) | |
super ultra mega basic global timeline
Diffstat (limited to 'routes/actor.php')
| -rw-r--r-- | routes/actor.php | 2 |
1 files changed, 1 insertions, 1 deletions
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')) { |
