fix empty response from /api/v1/notifications

This commit is contained in:
Hazelnoot 2025-03-21 23:24:55 -04:00
parent 178fe16f68
commit cac8377e4e

View file

@ -28,7 +28,7 @@ export class ApiNotificationsMastodon {
fastify.get<ApiNotifyMastodonRoute>('/v1/notifications', async (_request, reply) => {
const { client, me } = await this.clientService.getAuthClient(_request);
const data = await client.getNotifications(parseTimelineArgs(_request.query));
const response = Promise.all(data.data.map(async n => {
const response = await Promise.all(data.data.map(async n => {
const converted = await this.mastoConverters.convertNotification(n, me);
if (converted.type === 'reaction') {
converted.type = 'favourite';