refactor: remove masto.js excludeReplies workaround (#20)

This commit is contained in:
patak 2022-11-21 09:07:20 +01:00 committed by GitHub
parent cefecb16a0
commit 78f4390f6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 8 deletions

View file

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