mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-12 01:01:25 +09:00
filterの改善
This commit is contained in:
parent
a4ad66bd5b
commit
0cf8946fc7
@ -222,7 +222,7 @@ export class NotificationEntityService implements OnModuleInit {
|
||||
user,
|
||||
reaction: reaction.reaction,
|
||||
};
|
||||
}))).filter(r => r.user);
|
||||
}))).filter(r => isNotNull(r.user));
|
||||
// if all users have been deleted, don't show this notification
|
||||
if (!reactions.length) {
|
||||
return null;
|
||||
@ -243,7 +243,7 @@ export class NotificationEntityService implements OnModuleInit {
|
||||
}
|
||||
|
||||
return this.userEntityService.pack(userId, { id: meId });
|
||||
}))).filter(u => u);
|
||||
}))).filter(isNotNull);
|
||||
// if all users have been deleted, don't show this notification
|
||||
if (!users.length) {
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user