diff --git a/src/pages/http-route.jsx b/src/pages/http-route.jsx index c2cf1865..e7617230 100644 --- a/src/pages/http-route.jsx +++ b/src/pages/http-route.jsx @@ -24,11 +24,13 @@ export default function HttpRoute() { // Check if status returns 200 try { const { instance, id } = statusObject; - const { masto } = api({ instance }); - const status = await masto.v1.statuses.$select(id).fetch(); - if (status) { - window.location.hash = statusURL + '?view=full'; - return; + if (id) { + const { masto } = api({ instance }); + const status = await masto.v1.statuses.$select(id).fetch(); + if (status) { + window.location.hash = statusURL + '?view=full'; + return; + } } } catch (e) {}