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 --- .../notifier/shared/video-publication/new-video-for-subscribers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/lib/notifier/shared/video-publication/new-video-for-subscribers.ts') diff --git a/server/lib/notifier/shared/video-publication/new-video-for-subscribers.ts b/server/lib/notifier/shared/video-publication/new-video-for-subscribers.ts index 4253a0930..df7a5561d 100644 --- a/server/lib/notifier/shared/video-publication/new-video-for-subscribers.ts +++ b/server/lib/notifier/shared/video-publication/new-video-for-subscribers.ts @@ -30,8 +30,8 @@ export class NewVideoForSubscribers extends AbstractNotification ({ + createNotification (user: MUserWithNotificationSetting) { + const notification = UserNotificationModel.build({ type: UserNotificationType.NEW_VIDEO_FROM_SUBSCRIPTION, userId: user.id, videoId: this.payload.id -- cgit v1.2.3