mirror of
https://github.com/MisskeyIO/misskey
synced 2024-12-16 15:48:19 +09:00
Update create-notification.ts
This commit is contained in:
parent
493d32b3dc
commit
5864b52a81
@ -16,7 +16,7 @@ export async function createNotification(
|
|||||||
|
|
||||||
const profile = await UserProfiles.findOne({ userId: notifieeId });
|
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
|
// Create notification
|
||||||
const notification = await Notifications.save({
|
const notification = await Notifications.save({
|
||||||
|
Loading…
Reference in New Issue
Block a user