summaryrefslogtreecommitdiff
path: root/src/services
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2020-09-18 22:18:21 +0900
committerGitHub <noreply@github.com>2020-09-18 22:18:21 +0900
commitdf71dbb0242d763695ea8a33d0b2262c74b050d0 (patch)
tree804eddb878fbe86f181b76cb3ed814f00ef3433f /src/services
parentchore: better error text (diff)
downloadmisskey-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.ts2
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({