forked from FoundKeyGang/FoundKey
Fix bug
This commit is contained in:
parent
0f2d392b4b
commit
49f6b3233e
1 changed files with 6 additions and 6 deletions
|
@ -21,23 +21,23 @@ export class NotificationRepository extends Repository<Notification> {
|
||||||
userId: notification.notifierId,
|
userId: notification.notifierId,
|
||||||
user: Users.pack(notification.notifier || notification.notifierId),
|
user: Users.pack(notification.notifier || notification.notifierId),
|
||||||
...(notification.type === 'mention' ? {
|
...(notification.type === 'mention' ? {
|
||||||
note: Notes.pack(notification.note || notification.noteId!),
|
note: Notes.pack(notification.note || notification.noteId!, notification.notifieeId),
|
||||||
} : {}),
|
} : {}),
|
||||||
...(notification.type === 'reply' ? {
|
...(notification.type === 'reply' ? {
|
||||||
note: Notes.pack(notification.note || notification.noteId!),
|
note: Notes.pack(notification.note || notification.noteId!, notification.notifieeId),
|
||||||
} : {}),
|
} : {}),
|
||||||
...(notification.type === 'renote' ? {
|
...(notification.type === 'renote' ? {
|
||||||
note: Notes.pack(notification.note || notification.noteId!),
|
note: Notes.pack(notification.note || notification.noteId!, notification.notifieeId),
|
||||||
} : {}),
|
} : {}),
|
||||||
...(notification.type === 'quote' ? {
|
...(notification.type === 'quote' ? {
|
||||||
note: Notes.pack(notification.note || notification.noteId!),
|
note: Notes.pack(notification.note || notification.noteId!, notification.notifieeId),
|
||||||
} : {}),
|
} : {}),
|
||||||
...(notification.type === 'reaction' ? {
|
...(notification.type === 'reaction' ? {
|
||||||
note: Notes.pack(notification.note || notification.noteId!),
|
note: Notes.pack(notification.note || notification.noteId!, notification.notifieeId),
|
||||||
reaction: notification.reaction
|
reaction: notification.reaction
|
||||||
} : {}),
|
} : {}),
|
||||||
...(notification.type === 'pollVote' ? {
|
...(notification.type === 'pollVote' ? {
|
||||||
note: Notes.pack(notification.note || notification.noteId!),
|
note: Notes.pack(notification.note || notification.noteId!, notification.notifieeId),
|
||||||
choice: notification.choice
|
choice: notification.choice
|
||||||
} : {})
|
} : {})
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue