fix: notifierIdがない通知が消えてしまう問題

This commit is contained in:
taichan 2024-02-20 01:22:21 +09:00
parent b1e57e571d
commit 09a9484e4f
No known key found for this signature in database
GPG Key ID: CCE28623AFA24E9C
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
]);
notifications = (await Promise.all(notifications.map(async (notification): Promise<MiNotification|null> => {
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 });