From a6761ec278b8bb5e66db60e9c9ba478f31b12bbf Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Tue, 25 Apr 2023 18:21:15 -0700 Subject: [PATCH] see if this works --- .../src/server/api/endpoints/users/following.ts | 2 +- packages/client/src/components/MkHeatmap.vue | 10 ++++++++-- packages/client/src/widgets/activity.vue | 8 ++++++-- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/users/following.ts b/packages/backend/src/server/api/endpoints/users/following.ts index fbfaf6173d..37d69b048b 100644 --- a/packages/backend/src/server/api/endpoints/users/following.ts +++ b/packages/backend/src/server/api/endpoints/users/following.ts @@ -41,7 +41,7 @@ export const meta = { message: "Cannot find the following.", code: "CANNOT_FIND", id: "7a55f0d7-8e06-4a7e-9c77-ee7d59b25a82", - } + }, }, } as const; diff --git a/packages/client/src/components/MkHeatmap.vue b/packages/client/src/components/MkHeatmap.vue index c3010109ff..d11287fa1c 100644 --- a/packages/client/src/components/MkHeatmap.vue +++ b/packages/client/src/components/MkHeatmap.vue @@ -109,13 +109,19 @@ async function renderChart() { span: "day", }); values = raw.deliverFailed; - } else if (props.src === "user-notes") { + } else if (props.src === "my-notes") { const raw = await os.api("charts/user/notes", { limit: 7 * 21, span: "day", userId: $i.id, }); - values = raw.total; + values = raw.diffs.normal.map((_, i) => ({ + total: + raw.diffs.normal[i] + raw.diffs.reply[i] + raw.diffs.renote[i], + notes: raw.diffs.normal[i], + replies: raw.diffs.reply[i], + renotes: raw.diffs.renote[i], + })); } fetching = false; diff --git a/packages/client/src/widgets/activity.vue b/packages/client/src/widgets/activity.vue index 49c866fca0..66826f5eb1 100644 --- a/packages/client/src/widgets/activity.vue +++ b/packages/client/src/widgets/activity.vue @@ -9,12 +9,16 @@ >{{ i18n.ts._widgets.activity }}
- +