diff options
| author | tamaina <tamaina@hotmail.co.jp> | 2020-08-29 03:26:44 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-29 03:26:44 +0900 |
| commit | 5864b52a813c5fbb38bbe5ef5ad3648e313a5be1 (patch) | |
| tree | 53301f2e81b690d98db28703ec88daa92548ea06 | |
| parent | Fix #6676 (diff) | |
| download | misskey-5864b52a813c5fbb38bbe5ef5ad3648e313a5be1.tar.gz misskey-5864b52a813c5fbb38bbe5ef5ad3648e313a5be1.tar.bz2 misskey-5864b52a813c5fbb38bbe5ef5ad3648e313a5be1.zip | |
Update create-notification.ts
| -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 b2bcaaa836..7471c349ee 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?.includingNotificationTypes == null || profile?.includingNotificationTypes.includes(type)); // Create notification const notification = await Notifications.save({ |