fix empty response from /api/v1/blocks
This commit is contained in:
@@ -250,7 +250,7 @@ export class MastodonApiServerService {
|
|||||||
const client = this.clientService.getClient(_request);
|
const client = this.clientService.getClient(_request);
|
||||||
|
|
||||||
const data = await client.getBlocks(parseTimelineArgs(_request.query));
|
const data = await client.getBlocks(parseTimelineArgs(_request.query));
|
||||||
const response = Promise.all(data.data.map((account) => this.mastoConverters.convertAccount(account)));
|
const response = await Promise.all(data.data.map((account) => this.mastoConverters.convertAccount(account)));
|
||||||
|
|
||||||
reply.send(response);
|
reply.send(response);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user