X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Flib%2Fnotifier%2Fshared%2Fcomment%2Fcomment-mention.ts;h=3074e97db6a55b0c36ebe43bef0728a85d15cb75;hb=785f1897a42984ece9c6f65829d195d67e331d95;hp=765cbaad95fecff738cabd260eadaa4f5329c765;hpb=fa66c9a601d69f6d57c956a3513e8bbed7ee9616;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/lib/notifier/shared/comment/comment-mention.ts b/server/lib/notifier/shared/comment/comment-mention.ts index 765cbaad9..3074e97db 100644 --- a/server/lib/notifier/shared/comment/comment-mention.ts +++ b/server/lib/notifier/shared/comment/comment-mention.ts @@ -71,13 +71,13 @@ export class CommentMention extends AbstractNotification ({ + createNotification (user: MUserWithNotificationSetting) { + const notification = UserNotificationModel.build({ type: UserNotificationType.COMMENT_MENTION, userId: user.id, commentId: this.payload.id }) - notification.Comment = this.payload + notification.VideoComment = this.payload return notification }