aboutsummaryrefslogtreecommitdiffhomepage
path: root/routes/actor.php
diff options
context:
space:
mode:
Diffstat (limited to 'routes/actor.php')
-rw-r--r--routes/actor.php2
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')) {