1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-05 00:19:59 +00:00

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}`,
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
}