fix: use local masto

zio/stable
Daniel Roe 2022-11-26 17:56:04 +00:00
parent 7415c5fca2
commit 40a510f43d
No known key found for this signature in database
GPG Key ID: 22D5008E4F5D9B55
1 changed files with 2 additions and 2 deletions

View File

@ -40,12 +40,12 @@ export async function loginTo(user: UserLogin & { account?: AccountCredentials }
url: `https://${user.server}`,
accessToken: user.token,
})
const me = await useMasto().accounts.verifyCredentials()
const me = await masto.accounts.verifyCredentials()
user.account = me
users.value.push(user)
currentUserId.value = me.id
servers.value[me.id] = await useMasto().instances.fetch()
servers.value[me.id] = await masto.instances.fetch()
await reloadPage()
return true
}