try again

This commit is contained in:
cutestnekoaqua 2023-02-13 20:41:42 +01:00
parent e923172bec
commit 0cc81624b5
No known key found for this signature in database
GPG Key ID: 6BF0964A5069C1E0
1 changed files with 2 additions and 2 deletions

View File

@ -304,11 +304,11 @@ export function apiAccountMastodon(router: Router): void {
const client = getClient(BASE_URL, accessTokens);
let users;
try {
const idsRaw = ctx.query["id[]"];
const idsRaw = ctx.request.body?["id[]"] : null;
const ids = typeof idsRaw === "string" ? [idsRaw] : idsRaw;
users = ids;
relationshopModel.id = idsRaw?.toString() || "1";
if (!idsRaw) {
if (!(idsRaw && ids)) {
ctx.body = [relationshopModel];
return;
}