Switch to logged-in instance URL

This commit is contained in:
Lim Chee Aun 2023-02-15 10:51:09 +08:00
parent 8da6532cd3
commit bc7ac30e74

View file

@ -583,11 +583,7 @@ function StatusPage() {
});
if (results.statuses.length) {
const status = results.statuses[0];
navigate(
instance
? `/${instance}/s/${status.id}`
: `/s/${status.id}`,
);
navigate(`/s/${status.id}`);
} else {
throw new Error('No results');
}