From 19a5636833fc8ee9a01742db2f1171726c7b1e25 Mon Sep 17 00:00:00 2001 From: Crimekillz Date: Tue, 26 Mar 2024 14:57:10 +0100 Subject: [PATCH] Add reference to note when voting on a poll, so note and thread mutings get reflected correctly. Specifying the note is mandatory for thread and note mutings to be resolved. Arguably it shouldn't be mandatory for note mutings. --- packages/backend/src/services/note/polls/vote.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/backend/src/services/note/polls/vote.ts b/packages/backend/src/services/note/polls/vote.ts index 582af0b17..1016e6aa9 100644 --- a/packages/backend/src/services/note/polls/vote.ts +++ b/packages/backend/src/services/note/polls/vote.ts @@ -67,6 +67,7 @@ export default async function ( // Notify createNotification(note.userId, "pollVote", { notifierId: user.id, + note: note, noteId: note.id, choice: choice, }); @@ -79,6 +80,7 @@ export default async function ( for (const watcher of watchers) { createNotification(watcher.userId, "pollVote", { notifierId: user.id, + note: note, noteId: note.id, choice: choice, });