diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2020-09-18 22:18:21 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-18 22:18:21 +0900 |
| commit | df71dbb0242d763695ea8a33d0b2262c74b050d0 (patch) | |
| tree | 804eddb878fbe86f181b76cb3ed814f00ef3433f /src/services | |
| parent | chore: better error text (diff) | |
| download | misskey-df71dbb0242d763695ea8a33d0b2262c74b050d0.tar.gz misskey-df71dbb0242d763695ea8a33d0b2262c74b050d0.tar.bz2 misskey-df71dbb0242d763695ea8a33d0b2262c74b050d0.zip | |
Resolve #6692 (#6703)
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 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({ |