From df71dbb0242d763695ea8a33d0b2262c74b050d0 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 18 Sep 2020 22:18:21 +0900 Subject: Resolve #6692 (#6703) --- src/services/create-notification.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/services') diff --git a/src/services/create-notification.ts b/src/services/create-notification.ts index 7471c349ee..5dddaa5727 100644 --- a/src/services/create-notification.ts +++ b/src/services/create-notification.ts @@ -16,7 +16,7 @@ export async function createNotification( const profile = await UserProfiles.findOne({ userId: notifieeId }); - const isMuted = !(profile?.includingNotificationTypes == null || profile?.includingNotificationTypes.includes(type)); + const isMuted = profile?.mutingNotificationTypes.includes(type); // Create notification const notification = await Notifications.save({ -- cgit v1.2.3-freya