From 22188b97090c9e9fffc3f9440f0102b2221c9953 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Mon, 13 Feb 2023 19:48:57 -0800 Subject: [PATCH] attempt fix --- .../server/api/mastodon/endpoints/account.ts | 2 +- packages/client/src/pages/admin/overview.vue | 569 +----------------- 2 files changed, 33 insertions(+), 538 deletions(-) diff --git a/packages/backend/src/server/api/mastodon/endpoints/account.ts b/packages/backend/src/server/api/mastodon/endpoints/account.ts index abb31bb7f2..f395c5a9c5 100644 --- a/packages/backend/src/server/api/mastodon/endpoints/account.ts +++ b/packages/backend/src/server/api/mastodon/endpoints/account.ts @@ -304,7 +304,7 @@ export function apiAccountMastodon(router: Router): void { const client = getClient(BASE_URL, accessTokens); let users; try { - const idsRaw = ctx.request.body?["id[]"] : null; + const idsRaw = ctx.request.body ? ["id[]"] : null; const ids = typeof idsRaw === "string" ? [idsRaw] : idsRaw; users = ids; relationshopModel.id = idsRaw?.toString() || "1"; diff --git a/packages/client/src/pages/admin/overview.vue b/packages/client/src/pages/admin/overview.vue index e18af898bc..074f23f319 100644 --- a/packages/client/src/pages/admin/overview.vue +++ b/packages/client/src/pages/admin/overview.vue @@ -1,260 +1,84 @@