fix: only short circuit on account pages

pull/440/head
Daniel Roe 2022-12-14 20:57:15 +00:00
rodzic 5bd081df49
commit 25b0ad2f19
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 22D5008E4F5D9B55
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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 && to.params.account.includes('@')) {
if (to.params.account && to.name !== 'status' && to.params.account.includes('@')) {
const account = await fetchAccountByHandle(to.params.account as string)
if (account)
return getAccountRoute(account)