From ccae810d60c7868c397ede11d96b409b6822c420 Mon Sep 17 00:00:00 2001 From: Crimekillz Date: Tue, 26 Mar 2024 14:46:12 +0100 Subject: [PATCH] Do not notify me if a silenced user has voted on my polls --- packages/backend/src/services/create-notification.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/services/create-notification.ts b/packages/backend/src/services/create-notification.ts index d89cb8549..04cdac397 100644 --- a/packages/backend/src/services/create-notification.ts +++ b/packages/backend/src/services/create-notification.ts @@ -25,7 +25,7 @@ export async function createNotification( if ( data.notifierId && - ["mention", "reply", "renote", "quote", "reaction", "bite"].includes(type) + ["mention", "reply", "renote", "quote", "reaction", "bite", "pollVote"].includes(type) ) { const notifier = await Users.findOneBy({ id: data.notifierId }); // suppress if the notifier does not exist or is silenced.