mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 03:17:38 -07:00
Fix bug: Pass reference to Note OBJ when creating notifications for Poll Vote and Poll End so muted threads can be resolved correctly
This commit is contained in:
parent
e099582809
commit
74df0b3602
2 changed files with 3 additions and 0 deletions
|
@ -28,6 +28,7 @@ export async function endedPollNotification(
|
|||
|
||||
for (const userId of userIds) {
|
||||
createNotification(userId, "pollEnded", {
|
||||
note: note,
|
||||
noteId: note.id,
|
||||
});
|
||||
}
|
||||
|
|
|
@ -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 a new issue