From 78f4390f6d59f358eaea2334c09c0f715fd25cda Mon Sep 17 00:00:00 2001 From: patak Date: Mon, 21 Nov 2022 09:07:20 +0100 Subject: [PATCH] refactor: remove masto.js excludeReplies workaround (#20) --- package.json | 2 +- pages/@[user]/index.vue | 4 +--- pnpm-lock.yaml | 8 ++++---- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index c6be45f3..c8dd394d 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/pages/@[user]/index.vue b/pages/@[user]/index.vue index 466fc416..1b1aa2ec 100644 --- a/pages/@[user]/index.vue +++ b/pages/@[user]/index.vue @@ -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) }) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 01b20e78..9400f954 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -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