1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-27 22:38:11 +09:00

fix: fetch account by name

This commit is contained in:
Anthony Fu 2022-11-24 13:49:50 +08:00
parent a94781df83
commit 9eac1da4c2
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -13,7 +13,7 @@ const tabNames = ['Posts', 'Posts and replies'] as const
const tab = $ref('Posts')
const paginator = $computed(() => {
return masto.accounts.getStatusesIterable(account.value!.id!, { excludeReplies: tab === 'Posts' } as any)
return masto.accounts.getStatusesIterable(account.id, { excludeReplies: tab === 'Posts' } as any)
})
</script>