mirror of
https://github.com/elk-zone/elk
synced 2024-11-23 22:56:09 +09:00
parent
48f9e71d83
commit
9899cd0661
@ -38,7 +38,7 @@ export default defineNuxtRouteMiddleware(async (to, from) => {
|
||||
|
||||
try {
|
||||
// If we're already on an account page, we can search for this on the new instance
|
||||
if (to.params.account) {
|
||||
if (to.params.account && to.params.account.includes('@')) {
|
||||
const account = await fetchAccountByHandle(to.params.account as string)
|
||||
if (account)
|
||||
return getAccountRoute(account)
|
||||
|
Loading…
Reference in New Issue
Block a user