From 697a88ac3d2c225b2628e9fbc51529836151eb42 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Sat, 7 Jan 2023 13:35:42 -0800 Subject: [PATCH] fix: default to local timeline when logged out (#855) --- error.vue | 2 +- middleware/auth.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/error.vue b/error.vue index 79c582e9..79e965da 100644 --- a/error.vue +++ b/error.vue @@ -22,7 +22,7 @@ const reload = async () => { try { if (!masto.loggedIn.value) await masto.loginTo(currentUser.value) - clearError({ redirect: currentUser.value ? '/home' : `/${currentServer.value}/public` }) + clearError({ redirect: currentUser.value ? '/home' : `/${currentServer.value}/public/local` }) } catch { state.value = 'error' diff --git a/middleware/auth.ts b/middleware/auth.ts index e41dbd93..1854ec85 100644 --- a/middleware/auth.ts +++ b/middleware/auth.ts @@ -6,7 +6,7 @@ export default defineNuxtRouteMiddleware((to) => { onMastoInit(() => { if (!currentUser.value) - return navigateTo(`/${currentServer.value}/public`) + return navigateTo(`/${currentServer.value}/public/local`) if (to.path === '/') return navigateTo('/home') })