From 785f1897a42984ece9c6f65829d195d67e331d95 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 3 Aug 2022 11:33:43 +0200 Subject: Add notification plugin hook --- server/lib/notifier/shared/comment/comment-mention.ts | 4 ++-- server/lib/notifier/shared/comment/new-comment-for-video-owner.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'server/lib/notifier/shared/comment') diff --git a/server/lib/notifier/shared/comment/comment-mention.ts b/server/lib/notifier/shared/comment/comment-mention.ts index ecd1687b4..3074e97db 100644 --- a/server/lib/notifier/shared/comment/comment-mention.ts +++ b/server/lib/notifier/shared/comment/comment-mention.ts @@ -71,8 +71,8 @@ export class CommentMention extends AbstractNotification ({ + createNotification (user: MUserWithNotificationSetting) { + const notification = UserNotificationModel.build({ type: UserNotificationType.COMMENT_MENTION, userId: user.id, commentId: this.payload.id diff --git a/server/lib/notifier/shared/comment/new-comment-for-video-owner.ts b/server/lib/notifier/shared/comment/new-comment-for-video-owner.ts index 757502703..4f96439a3 100644 --- a/server/lib/notifier/shared/comment/new-comment-for-video-owner.ts +++ b/server/lib/notifier/shared/comment/new-comment-for-video-owner.ts @@ -38,8 +38,8 @@ export class NewCommentForVideoOwner extends AbstractNotification ({ + createNotification (user: MUserWithNotificationSetting) { + const notification = UserNotificationModel.build({ type: UserNotificationType.NEW_COMMENT_ON_MY_VIDEO, userId: user.id, commentId: this.payload.id -- cgit v1.2.3