refactor: remove masto.js excludeReplies workaround (#20)
This commit is contained in:
parent
cefecb16a0
commit
78f4390f6d
3 changed files with 6 additions and 8 deletions
|
@ -14,9 +14,7 @@ const tabNames = ['Posts', 'Posts and replies'] as const
|
|||
const tab = $ref('Posts')
|
||||
|
||||
const paginator = $computed(() => {
|
||||
// bug in Masto.js, it should convert `excludeReplies` to `exclude_replies`
|
||||
// https://github.com/neet/masto.js/issues/689
|
||||
return masto.accounts.getStatusesIterable(account.value!.id!, { exclude_replies: tab === 'Posts' } as any)
|
||||
return masto.accounts.getStatusesIterable(account.value!.id!, { excludeReplies: tab === 'Posts' } as any)
|
||||
})
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue