fix: handle account uris that differ from server url
This commit is contained in:
parent
20d8aa7e75
commit
e75cc9edf2
2 changed files with 6 additions and 0 deletions
|
@ -49,6 +49,9 @@ export async function fetchAccountByHandle(acct: string): Promise<Account> {
|
|||
return cached
|
||||
const account = useMasto().accounts.lookup({ acct })
|
||||
.then((r) => {
|
||||
if (!r.acct.includes('@') && currentInstance.value)
|
||||
r.acct = `${r.acct}@${currentInstance.value.uri}`
|
||||
|
||||
cacheAccount(r, true)
|
||||
return r
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue