mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-23 14:13:21 +01: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
|
@ -249,7 +249,8 @@ function App() {
|
||||||
<Route path="/:instance?/s/:id" element={<Status />} />
|
<Route path="/:instance?/s/:id" element={<Status />} />
|
||||||
</Routes>
|
</Routes>
|
||||||
<div>
|
<div>
|
||||||
{!snapStates.settings.shortcutsColumnsMode &&
|
{isLoggedIn &&
|
||||||
|
!snapStates.settings.shortcutsColumnsMode &&
|
||||||
snapStates.settings.shortcutsViewMode !== 'multi-column' && (
|
snapStates.settings.shortcutsViewMode !== 'multi-column' && (
|
||||||
<Shortcuts />
|
<Shortcuts />
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -93,6 +93,8 @@ export async function initAccount(client, instance, accessToken) {
|
||||||
const masto = client;
|
const masto = client;
|
||||||
const mastoAccount = await masto.v1.accounts.verifyCredentials();
|
const mastoAccount = await masto.v1.accounts.verifyCredentials();
|
||||||
|
|
||||||
|
store.session.set('currentAccount', mastoAccount.id);
|
||||||
|
|
||||||
saveAccount({
|
saveAccount({
|
||||||
info: mastoAccount,
|
info: mastoAccount,
|
||||||
instanceURL: instance.toLowerCase(),
|
instanceURL: instance.toLowerCase(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue