From af7c8ec73277e1341b31d51b199aa318dc3e8a67 Mon Sep 17 00:00:00 2001 From: naskya Date: Fri, 28 Jun 2024 15:54:04 +0900 Subject: [PATCH] fix (client): boost tooltip not showing boosted users --- packages/backend/src/server/api/endpoints/notes/renotes.ts | 2 +- packages/client/src/components/MkRenoteButton.vue | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/notes/renotes.ts b/packages/backend/src/server/api/endpoints/notes/renotes.ts index 16304dd269..1f9a55588d 100644 --- a/packages/backend/src/server/api/endpoints/notes/renotes.ts +++ b/packages/backend/src/server/api/endpoints/notes/renotes.ts @@ -46,7 +46,7 @@ export const paramDef = { type: "string", enum: ["all", "renote", "quote"], nullable: true, - default: null, + default: "all", }, }, required: ["noteId"], diff --git a/packages/client/src/components/MkRenoteButton.vue b/packages/client/src/components/MkRenoteButton.vue index 53c1994e65..e4cdddc1ca 100644 --- a/packages/client/src/components/MkRenoteButton.vue +++ b/packages/client/src/components/MkRenoteButton.vue @@ -52,7 +52,8 @@ const canRenote = computed( useTooltip(buttonRef, async (showing) => { const renotes = await os.api("notes/renotes", { noteId: props.note.id, - limit: 11, + limit: 10, + filter: "renote", }); const users = renotes.map((x) => x.user);