mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-14 01:21:04 +09:00
fix: notifierIdがない通知が消えてしまう問題 (grouped)
This commit is contained in:
parent
094e10a278
commit
c21b6d95ae
@ -6,6 +6,7 @@
|
||||
import { Brackets, In } from 'typeorm';
|
||||
import * as Redis from 'ioredis';
|
||||
import { Inject, Injectable } from '@nestjs/common';
|
||||
import { not } from 'ajv/dist/compile/codegen/index.js';
|
||||
import type { NotesRepository, UsersRepository } from '@/models/_.js';
|
||||
import { obsoleteNotificationTypes, notificationTypes, FilterUnionByProperty } from '@/types.js';
|
||||
import { Endpoint } from '@/server/api/endpoint-base.js';
|
||||
@ -121,7 +122,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 });
|
||||
|
Loading…
Reference in New Issue
Block a user