refactor: remove masto.js excludeReplies workaround (#20)
parent
cefecb16a0
commit
78f4390f6d
|
@ -26,7 +26,7 @@
|
|||
"eslint": "^8.27.0",
|
||||
"form-data": "^4.0.0",
|
||||
"fs-extra": "^10.1.0",
|
||||
"masto": "^4.6.5",
|
||||
"masto": "^4.6.6",
|
||||
"nuxt": "^3.0.0",
|
||||
"parse5": "^7.1.1",
|
||||
"pinia": "^2.0.23",
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ specifiers:
|
|||
eslint: ^8.27.0
|
||||
form-data: ^4.0.0
|
||||
fs-extra: ^10.1.0
|
||||
masto: ^4.6.5
|
||||
masto: ^4.6.6
|
||||
nuxt: ^3.0.0
|
||||
parse5: ^7.1.1
|
||||
pinia: ^2.0.23
|
||||
|
@ -40,7 +40,7 @@ devDependencies:
|
|||
eslint: 8.27.0
|
||||
form-data: 4.0.0
|
||||
fs-extra: 10.1.0
|
||||
masto: 4.6.5
|
||||
masto: 4.6.6
|
||||
nuxt: 3.0.0_e3uo4sehh4zr4i6m57mkkxxv7y
|
||||
parse5: 7.1.1
|
||||
pinia: 2.0.23_typescript@4.9.3
|
||||
|
@ -4688,8 +4688,8 @@ packages:
|
|||
semver: 6.3.0
|
||||
dev: true
|
||||
|
||||
/masto/4.6.5:
|
||||
resolution: {integrity: sha512-bcc6QA9RmtYE51rHKhhgv1ITUr6ssIMnPMguAEJ3YOdgKHh38skuljtmvrq+S2bIrI5wJ+k/XuVHcMkymQJGoQ==}
|
||||
/masto/4.6.6:
|
||||
resolution: {integrity: sha512-3PK6J4o8TtqDiqnpAWYgGIkr/WSJ0Y8Ab4WE61jfSUOLv3ktv0YclvGoOCaUUgjKVpMj83djEjzAPj8QSJUulQ==}
|
||||
dependencies:
|
||||
axios: 1.1.3
|
||||
change-case: 4.1.2
|
||||
|
|
Loading…
Reference in New Issue