mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-05-03 05:33:06 +03:00
Fix wrong API call when adding new account
This commit is contained in:
parent
903944e9c2
commit
39ec0d29e2
2 changed files with 4 additions and 1 deletions
src/utils
|
@ -93,6 +93,8 @@ export async function initAccount(client, instance, accessToken) {
|
|||
const masto = client;
|
||||
const mastoAccount = await masto.v1.accounts.verifyCredentials();
|
||||
|
||||
store.session.set('currentAccount', mastoAccount.id);
|
||||
|
||||
saveAccount({
|
||||
info: mastoAccount,
|
||||
instanceURL: instance.toLowerCase(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue