fix: handle permalinks with app shell (#468)

This commit is contained in:
Daniel Roe 2022-12-20 08:20:40 +00:00 committed by GitHub
parent f8ebc0e99a
commit 8de1c95fd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 3 deletions

View file

@ -53,7 +53,8 @@ export default defineNuxtPlugin(async (nuxtApp) => {
nuxtApp.hook('app:suspense:resolve', () => {
// TODO: improve upstream to make this synchronous (delayed auth)
masto.loginTo(user)
if (!masto.loggedIn.value)
masto.loginTo(user)
})
}