diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2019-09-24 02:57:34 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-09-24 02:57:34 +0900 |
| commit | 49f6b3233eaca51903897b7b2f8b7bc2d1021369 (patch) | |
| tree | 2cd0c59fb9939a88c8e203f34db0c3224ad580da /src | |
| parent | Use stringz.length instead of String.length in hashtag length calculation (#5... (diff) | |
| download | sharkey-49f6b3233eaca51903897b7b2f8b7bc2d1021369.tar.gz sharkey-49f6b3233eaca51903897b7b2f8b7bc2d1021369.tar.bz2 sharkey-49f6b3233eaca51903897b7b2f8b7bc2d1021369.zip | |
Fix bug
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 } : {}) }); |