fix: fetch account by name
parent
a94781df83
commit
9eac1da4c2
|
@ -46,7 +46,7 @@ export function fetchAccountByName(acct: string) {
|
||||||
const cached = cache.get(key)
|
const cached = cache.get(key)
|
||||||
if (cached)
|
if (cached)
|
||||||
return cached
|
return cached
|
||||||
const account = masto.accounts.fetch(acct)
|
const account = masto.accounts.lookup({ acct })
|
||||||
.then((r) => {
|
.then((r) => {
|
||||||
cacheAccount(r)
|
cacheAccount(r)
|
||||||
return r
|
return r
|
||||||
|
|
|
@ -13,7 +13,7 @@ const tabNames = ['Posts', 'Posts and replies'] as const
|
||||||
const tab = $ref('Posts')
|
const tab = $ref('Posts')
|
||||||
|
|
||||||
const paginator = $computed(() => {
|
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>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue