fix: fetch account by name
This commit is contained in:
parent
a94781df83
commit
9eac1da4c2
2 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ export function fetchAccountByName(acct: string) {
|
|||
const cached = cache.get(key)
|
||||
if (cached)
|
||||
return cached
|
||||
const account = masto.accounts.fetch(acct)
|
||||
const account = masto.accounts.lookup({ acct })
|
||||
.then((r) => {
|
||||
cacheAccount(r)
|
||||
return r
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue