aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/notifier/shared/follow/follow-for-user.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-08-03 11:33:43 +0200
committerChocobozzz <me@florianbigard.com>2022-08-03 11:33:43 +0200
commit785f1897a42984ece9c6f65829d195d67e331d95 (patch)
tree1cb3b33cfc797b8f1abbab90749c1e3187bbd311 /server/lib/notifier/shared/follow/follow-for-user.ts
parent0260dc8aca952f9412a8620e433b9e16e675696e (diff)
downloadPeerTube-785f1897a42984ece9c6f65829d195d67e331d95.tar.gz
PeerTube-785f1897a42984ece9c6f65829d195d67e331d95.tar.zst
PeerTube-785f1897a42984ece9c6f65829d195d67e331d95.zip
Add notification plugin hook
Diffstat (limited to 'server/lib/notifier/shared/follow/follow-for-user.ts')
-rw-r--r--server/lib/notifier/shared/follow/follow-for-user.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/notifier/shared/follow/follow-for-user.ts b/server/lib/notifier/shared/follow/follow-for-user.ts
index e579d4487..697c82cdd 100644
--- a/server/lib/notifier/shared/follow/follow-for-user.ts
+++ b/server/lib/notifier/shared/follow/follow-for-user.ts
@@ -45,8 +45,8 @@ export class FollowForUser extends AbstractNotification <MActorFollowFull> {
45 return [ this.user ] 45 return [ this.user ]
46 } 46 }
47 47
48 async createNotification (user: MUserWithNotificationSetting) { 48 createNotification (user: MUserWithNotificationSetting) {
49 const notification = await UserNotificationModel.create<UserNotificationModelForApi>({ 49 const notification = UserNotificationModel.build<UserNotificationModelForApi>({
50 type: UserNotificationType.NEW_FOLLOW, 50 type: UserNotificationType.NEW_FOLLOW,
51 userId: user.id, 51 userId: user.id,
52 actorFollowId: this.actorFollow.id 52 actorFollowId: this.actorFollow.id