diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/models/repositories/notification.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/models/repositories/notification.ts b/src/models/repositories/notification.ts index 96293d4a68..4a10368160 100644 --- a/src/models/repositories/notification.ts +++ b/src/models/repositories/notification.ts @@ -21,23 +21,23 @@ export class NotificationRepository extends Repository<Notification> { 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 } : {}) }); |