From 60a867375772642935320fb86d7d2adb95f19bb9 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 20 Dec 2022 15:56:54 +0000 Subject: [PATCH] fix: use `masto.loginTo` to update masto api (#474) --- app.vue | 2 +- components/user/UserPicker.vue | 3 ++- components/user/UserSwitcher.vue | 3 ++- composables/command.ts | 3 ++- composables/users.ts | 4 +++- error.vue | 5 +++-- middleware/permalink.global.ts | 7 ++++--- pages/[...permalink].vue | 6 ++---- 8 files changed, 19 insertions(+), 14 deletions(-) diff --git a/app.vue b/app.vue index b7379cb6..2599eb4f 100644 --- a/app.vue +++ b/app.vue @@ -5,7 +5,7 @@ setupPageHeader() provideGlobalCommands() // We want to trigger rerendering the page when account changes -const key = computed(() => `${currentServer.value}:${currentUser.value?.account.id || ''}`) +const key = computed(() => `${currentUser.value?.server ?? currentServer.value}:${currentUser.value?.account.id || ''}`)