fix: saving profile data breaks cache (#1937)

This commit is contained in:
Joaquín Sánchez 2023-04-16 21:39:33 +02:00 committed by GitHub
parent c71259334c
commit f07d32375a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,6 +71,12 @@ const { submit, submitting } = submitter(async ({ dirtyFields }) => {
return
}
const server = currentUser.value!.server
if (!res.account.acct.includes('@'))
res.account.acct = `${res.account.acct}@${server}`
cacheAccount(res.account, server, true)
currentUser.value!.account = res.account
reset()
})