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

View File

@ -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,
});