mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-24 17:59: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
|
// Notify
|
||||||
createNotification(note.userId, "pollVote", {
|
createNotification(note.userId, "pollVote", {
|
||||||
notifierId: user.id,
|
notifierId: user.id,
|
||||||
|
note: note,
|
||||||
noteId: note.id,
|
noteId: note.id,
|
||||||
choice: choice,
|
choice: choice,
|
||||||
});
|
});
|
||||||
@ -79,6 +80,7 @@ export default async function (
|
|||||||
for (const watcher of watchers) {
|
for (const watcher of watchers) {
|
||||||
createNotification(watcher.userId, "pollVote", {
|
createNotification(watcher.userId, "pollVote", {
|
||||||
notifierId: user.id,
|
notifierId: user.id,
|
||||||
|
note: note,
|
||||||
noteId: note.id,
|
noteId: note.id,
|
||||||
choice: choice,
|
choice: choice,
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user