diff options
| author | winter | 2025-03-15 18:35:59 +0000 |
|---|---|---|
| committer | winter | 2025-03-15 18:52:54 +0000 |
| commit | 61b122e88cc6783b4d0cf5142a22002f8e558c60 (patch) | |
| tree | 847b864a93f716157456891d4526077e5f0b93f7 /routes/lookup.php | |
| parent | cb904ef3fb05ab106d5e5e12f6273b8117db4216 (diff) | |
implement pages
Diffstat (limited to 'routes/lookup.php')
| -rw-r--r-- | routes/lookup.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/routes/lookup.php b/routes/lookup.php index e0a790e..62d9e48 100644 --- a/routes/lookup.php +++ b/routes/lookup.php @@ -34,9 +34,7 @@ Router::getInstance()->mount('/lookup', function (array $args) { throw new NotFound("i can't find any object with that uri, sorry!"); } - if ($object instanceof Note) { - throw new TemporaryRedirect('/@/' . $object->author->getFullHandle() . "/note/$object->id"); - } elseif ($object instanceof Actor) { - throw new TemporaryRedirect('/@/' . $object->getFullHandle()); + if ($object instanceof Note || $object instanceof Actor) { + throw new TemporaryRedirect($object->getLocalUiHref()); } });
\ No newline at end of file |
