diff options
| author | winter | 2024-12-19 21:14:12 +0000 |
|---|---|---|
| committer | winter | 2024-12-19 21:14:12 +0000 |
| commit | ea7076ecdb7995d619a95b22e8905f1987ffba56 (patch) | |
| tree | f4a459c9fc0be4c502039362bb8ba03742c3de5b /routes/actor.php | |
| parent | 8c4b618b0fd61b82ecaac1c7040eec8dd8d26c94 (diff) | |
more fixes!!!!
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 30b28c5..98e8f4e 100644 --- a/routes/actor.php +++ b/routes/actor.php @@ -12,7 +12,7 @@ Router::getInstance()->mount('/user/:handle', function (array $args) { if ($actor == null) { throw new NotFound("i don't know any local user called " . $args['handle']); } - if (str_contains($_SERVER['HTTP_ACCEPT'], 'text/html')) { + if (isset($_SERVER['HTTP_ACCEPT']) && str_contains($_SERVER['HTTP_ACCEPT'], 'text/html')) { throw new TemporaryRedirect(path_to_uri("/@/$actor->handle")); } json_response($actor); |
