diff options
| author | Hazelnoot <acomputerdog@gmail.com> | 2025-03-21 23:24:55 -0400 |
|---|---|---|
| committer | Hazelnoot <acomputerdog@gmail.com> | 2025-03-27 19:51:43 -0400 |
| commit | cac8377e4ea6e0af507684528d386ae4f1ffd94e (patch) | |
| tree | ca571bce477f9a6d0508a924753c33b308d529de /packages/backend/src/server/api | |
| parent | fix empty response from /api/v1/blocks (diff) | |
| download | sharkey-cac8377e4ea6e0af507684528d386ae4f1ffd94e.tar.gz sharkey-cac8377e4ea6e0af507684528d386ae4f1ffd94e.tar.bz2 sharkey-cac8377e4ea6e0af507684528d386ae4f1ffd94e.zip | |
fix empty response from /api/v1/notifications
Diffstat (limited to 'packages/backend/src/server/api')
| -rw-r--r-- | packages/backend/src/server/api/mastodon/endpoints/notifications.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/server/api/mastodon/endpoints/notifications.ts b/packages/backend/src/server/api/mastodon/endpoints/notifications.ts index 5b03c21d6f..3b2833bf86 100644 --- a/packages/backend/src/server/api/mastodon/endpoints/notifications.ts +++ b/packages/backend/src/server/api/mastodon/endpoints/notifications.ts @@ -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'; |