1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-04 01:26:41 +02:00
This commit is contained in:
tamaina
2020-08-29 03:14:27 +09:00
committed by GitHub
parent ed141338fb
commit 493d32b3dc

View File

@@ -16,7 +16,7 @@ export async function createNotification(
const profile = await UserProfiles.findOne({ userId: notifieeId });
const isMuted = !profile?.includingNotificationTypes?.includes(type);
const isMuted = !(profile?.includingNotificationTypes === null || profile?.includingNotificationTypes.includes(type));
// Create notification
const notification = await Notifications.save({