fix: notifierIdがない通知が消えてしまう問題
This commit is contained in:
parent
b1e57e571d
commit
09a9484e4f
|
@ -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> => {
|
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;
|
if (userIdsWhoMeMuting.has(notification.notifierId)) return null;
|
||||||
|
|
||||||
const notifier = await this.usersRepository.findOneBy({ id: notification.notifierId });
|
const notifier = await this.usersRepository.findOneBy({ id: notification.notifierId });
|
||||||
|
|
Loading…
Reference in a new issue