fix: intermediarily convert ids
This commit is contained in:
parent
624d3c399f
commit
04c1b395b4
1 changed files with 6 additions and 1 deletions
|
@ -339,7 +339,12 @@ export function apiAccountMastodon(router: Router): void {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const data = await client.getRelationships(ids);
|
let reqIds = [];
|
||||||
|
for (let i = 0; i < ids.length; i++) {
|
||||||
|
reqIds.push(convertId(ids[i], IdType.CalckeyId));
|
||||||
|
}
|
||||||
|
|
||||||
|
const data = await client.getRelationships(reqIds);
|
||||||
let resp = data.data;
|
let resp = data.data;
|
||||||
for (let acctIdx = 0; acctIdx < resp.length; acctIdx++) {
|
for (let acctIdx = 0; acctIdx < resp.length; acctIdx++) {
|
||||||
resp[acctIdx].id = convertId(resp[acctIdx].id, IdType.MastodonId);
|
resp[acctIdx].id = convertId(resp[acctIdx].id, IdType.MastodonId);
|
||||||
|
|
Loading…
Reference in a new issue