From 49f6b3233eaca51903897b7b2f8b7bc2d1021369 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 24 Sep 2019 02:57:34 +0900 Subject: [PATCH] Fix bug --- src/models/repositories/notification.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 } : {}) });