diff --git a/packages/backend/src/server/api/endpoints/i/notifications.ts b/packages/backend/src/server/api/endpoints/i/notifications.ts index 3a2bc819f9..632b3eeffb 100644 --- a/packages/backend/src/server/api/endpoints/i/notifications.ts +++ b/packages/backend/src/server/api/endpoints/i/notifications.ts @@ -119,7 +119,7 @@ export default class extends Endpoint { // eslint- ]); notifications = (await Promise.all(notifications.map(async (notification): Promise => { - if (!('notifierId' in notification)) return null; + if (!('notifierId' in notification)) return notification; if (userIdsWhoMeMuting.has(notification.notifierId)) return null; const notifier = await this.usersRepository.findOneBy({ id: notification.notifierId });