Do not notify me if a silenced user has voted on my polls

This commit is contained in:
Crimekillz 2024-03-26 14:46:12 +01:00
parent 02cf0ef3eb
commit ccae810d60
No known key found for this signature in database
GPG Key ID: 7249C94AE229BEAF

View File

@ -25,7 +25,7 @@ export async function createNotification(
if ( if (
data.notifierId && 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 }); const notifier = await Users.findOneBy({ id: data.notifierId });
// suppress if the notifier does not exist or is silenced. // suppress if the notifier does not exist or is silenced.