mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-24 09:49:05 +01:00
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:
parent
ccae810d60
commit
19a5636833
@ -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,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user