From d09ffc4b1c2bece8ae4d9b5eba0b9006e1958b8c Mon Sep 17 00:00:00 2001 From: Crimekillz Date: Tue, 26 Mar 2024 14:59:47 +0100 Subject: [PATCH] Add reference to note when poll ends, so note and thread mutings get reflected correctly. In order for thread mutings to mute the poll ended notification correctly, the note needs to be specified by object, not just by ID --- packages/backend/src/queue/processors/ended-poll-notification.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/backend/src/queue/processors/ended-poll-notification.ts b/packages/backend/src/queue/processors/ended-poll-notification.ts index 3bf010a1b..c652d6216 100644 --- a/packages/backend/src/queue/processors/ended-poll-notification.ts +++ b/packages/backend/src/queue/processors/ended-poll-notification.ts @@ -28,6 +28,7 @@ export async function endedPollNotification( for (const userId of userIds) { createNotification(userId, "pollEnded", { + note: note, noteId: note.id, }); }