From ff7f7c88354217781389f9839adab751f434ec99 Mon Sep 17 00:00:00 2001
From: taichan <dev@taichan.site>
Date: Tue, 20 Feb 2024 15:22:59 +0900
Subject: [PATCH] Fix packGrouped

---
 .../backend/src/core/entities/NotificationEntityService.ts    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/packages/backend/src/core/entities/NotificationEntityService.ts b/packages/backend/src/core/entities/NotificationEntityService.ts
index 26287ea544..8f74eb8024 100644
--- a/packages/backend/src/core/entities/NotificationEntityService.ts
+++ b/packages/backend/src/core/entities/NotificationEntityService.ts
@@ -161,7 +161,7 @@ export class NotificationEntityService implements OnModuleInit {
 		meId: MiUser['id'],
 		// eslint-disable-next-line @typescript-eslint/ban-types
 		options: {
-
+			checkValidNotifier?: boolean;
 		},
 		hint?: {
 			packedNotes: Map<MiNote['id'], Packed<'Note'>>;
@@ -170,7 +170,7 @@ export class NotificationEntityService implements OnModuleInit {
 	): Promise<Packed<'Notification'>|null> {
 		const notification = src;
 
-		if (!(await this.#isValidNotifier(notification, meId))) return null;
+		if ( options.checkValidNotifier && !(await this.#isValidNotifier(notification, meId))) return null;
 
 		const noteIfNeed = NOTE_REQUIRED_GROUPED_NOTIFICATION_TYPES.has(notification.type) && 'noteId' in notification ? (
 			hint?.packedNotes != null