fix: use local masto

This commit is contained in:
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

View file

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