mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-21 05:18:51 +01:00
Switch to logged-in instance URL
This commit is contained in:
parent
8da6532cd3
commit
bc7ac30e74
1 changed files with 1 additions and 5 deletions
|
@ -583,11 +583,7 @@ function StatusPage() {
|
||||||
});
|
});
|
||||||
if (results.statuses.length) {
|
if (results.statuses.length) {
|
||||||
const status = results.statuses[0];
|
const status = results.statuses[0];
|
||||||
navigate(
|
navigate(`/s/${status.id}`);
|
||||||
instance
|
|
||||||
? `/${instance}/s/${status.id}`
|
|
||||||
: `/s/${status.id}`,
|
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
throw new Error('No results');
|
throw new Error('No results');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue