this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix profile URLs not working for http route

+7 -5
+7 -5
src/pages/http-route.jsx
··· 24 24 // Check if status returns 200 25 25 try { 26 26 const { instance, id } = statusObject; 27 - const { masto } = api({ instance }); 28 - const status = await masto.v1.statuses.$select(id).fetch(); 29 - if (status) { 30 - window.location.hash = statusURL + '?view=full'; 31 - return; 27 + if (id) { 28 + const { masto } = api({ instance }); 29 + const status = await masto.v1.statuses.$select(id).fetch(); 30 + if (status) { 31 + window.location.hash = statusURL + '?view=full'; 32 + return; 33 + } 32 34 } 33 35 } catch (e) {} 34 36