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
This commit is contained in:
Crimekillz 2024-03-26 14:59:47 +01:00
parent 19a5636833
commit d09ffc4b1c
No known key found for this signature in database
GPG Key ID: 7249C94AE229BEAF

View File

@ -28,6 +28,7 @@ export async function endedPollNotification(
for (const userId of userIds) {
createNotification(userId, "pollEnded", {
note: note,
noteId: note.id,
});
}