forked from Mirrors/elk
fix: force using username@server settings if present
This commit is contained in:
parent
d0a4c51ef5
commit
0092c8cbe9
1 changed files with 11 additions and 11 deletions
|
@ -357,7 +357,7 @@ export function useUserLocalStorage<T extends object>(key: string, initial: () =
|
|||
// Backward compatibility, respect webDomain in acct
|
||||
// In previous versions, acct was username@server instead of username@webDomain
|
||||
// for example: elk@m.webtoo.ls instead of elk@webtoo.ls
|
||||
if (!all.value[id]) {
|
||||
// if (!all.value[id]) { // TODO: add back this condition in the future
|
||||
const [username, webDomain] = id.split('@')
|
||||
const server = currentServer.value
|
||||
if (webDomain && server && server !== webDomain) {
|
||||
|
@ -369,7 +369,7 @@ export function useUserLocalStorage<T extends object>(key: string, initial: () =
|
|||
all.value = newAllValue
|
||||
}
|
||||
}
|
||||
}
|
||||
// }
|
||||
all.value[id] = Object.assign(initial(), all.value[id] || {})
|
||||
return all.value[id]
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue