try again
This commit is contained in:
parent
e923172bec
commit
0cc81624b5
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue