diff options
| author | tamaina <tamaina@hotmail.co.jp> | 2020-08-29 03:14:27 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-29 03:14:27 +0900 |
| commit | 493d32b3dcbf05e66ccf124bea2a92f92d05f134 (patch) | |
| tree | da13bacbbfe81d2b99cf8b49224d7eb50e2663b4 /src/services | |
| parent | Safari で mk-select に光沢がかかるのを修正 (#6668) (diff) | |
| download | sharkey-493d32b3dcbf05e66ccf124bea2a92f92d05f134.tar.gz sharkey-493d32b3dcbf05e66ccf124bea2a92f92d05f134.tar.bz2 sharkey-493d32b3dcbf05e66ccf124bea2a92f92d05f134.zip | |
Fix #6676
Diffstat (limited to 'src/services')
| -rw-r--r-- | src/services/create-notification.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/create-notification.ts b/src/services/create-notification.ts index 4e713e3804..b2bcaaa836 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?.includes(type); + const isMuted = !(profile?.includingNotificationTypes === null || profile?.includingNotificationTypes.includes(type)); // Create notification const notification = await Notifications.save({ |