diff --git a/src/models/repositories/notification.ts b/src/models/repositories/notification.ts index 96293d4a6..4a1036816 100644 --- a/src/models/repositories/notification.ts +++ b/src/models/repositories/notification.ts @@ -21,23 +21,23 @@ export class NotificationRepository extends Repository { userId: notification.notifierId, user: Users.pack(notification.notifier || notification.notifierId), ...(notification.type === 'mention' ? { - note: Notes.pack(notification.note || notification.noteId!), + note: Notes.pack(notification.note || notification.noteId!, notification.notifieeId), } : {}), ...(notification.type === 'reply' ? { - note: Notes.pack(notification.note || notification.noteId!), + note: Notes.pack(notification.note || notification.noteId!, notification.notifieeId), } : {}), ...(notification.type === 'renote' ? { - note: Notes.pack(notification.note || notification.noteId!), + note: Notes.pack(notification.note || notification.noteId!, notification.notifieeId), } : {}), ...(notification.type === 'quote' ? { - note: Notes.pack(notification.note || notification.noteId!), + note: Notes.pack(notification.note || notification.noteId!, notification.notifieeId), } : {}), ...(notification.type === 'reaction' ? { - note: Notes.pack(notification.note || notification.noteId!), + note: Notes.pack(notification.note || notification.noteId!, notification.notifieeId), reaction: notification.reaction } : {}), ...(notification.type === 'pollVote' ? { - note: Notes.pack(notification.note || notification.noteId!), + note: Notes.pack(notification.note || notification.noteId!, notification.notifieeId), choice: notification.choice } : {}) });