mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 01:13:48 +01:00
Fix #6676
This commit is contained in:
parent
db9c8e2155
commit
58e595a009
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user