Frontend: Fixed lookup of local users by URL opening null
This commit is contained in:
parent
657fa1f5bb
commit
f56a4efd1e
|
@ -53,7 +53,11 @@ export async function search() {
|
|||
const res = await promise;
|
||||
|
||||
if (res.type === "User") {
|
||||
mainRouter.push(`/@${res.object.username}@${res.object.host}`);
|
||||
mainRouter.push(
|
||||
`/@${res.object.username}` + res.object.host
|
||||
? `@${res.object.host}`
|
||||
: ""
|
||||
);
|
||||
} else if (res.type === "Note") {
|
||||
mainRouter.push(`/notes/${res.object.id}`);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue