mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-05 11:23:08 +02:00
fix: followers and following not being able to load
This commit is contained in:
parent
90b666e626
commit
95bcfd8ef3
1 changed files with 2 additions and 2 deletions
|
@ -112,7 +112,7 @@ export class ApiAccountMastodon {
|
|||
(this.request.params as any).id,
|
||||
limitToInt(this.request.query as any),
|
||||
);
|
||||
return data.data.map((account) => this.mastoconverter.convertAccount(account));
|
||||
return await Promise.all(data.data.map(async (account) => await this.mastoconverter.convertAccount(account)));
|
||||
} catch (e: any) {
|
||||
console.error(e);
|
||||
console.error(e.response.data);
|
||||
|
@ -126,7 +126,7 @@ export class ApiAccountMastodon {
|
|||
(this.request.params as any).id,
|
||||
limitToInt(this.request.query as any),
|
||||
);
|
||||
return data.data.map((account) => this.mastoconverter.convertAccount(account));
|
||||
return await Promise.all(data.data.map(async (account) => await this.mastoconverter.convertAccount(account)));
|
||||
} catch (e: any) {
|
||||
console.error(e);
|
||||
console.error(e.response.data);
|
||||
|
|
Loading…
Reference in a new issue