diff options
Diffstat (limited to 'server/lib/notifier/shared/follow/auto-follow-for-instance.ts')
-rw-r--r-- | server/lib/notifier/shared/follow/auto-follow-for-instance.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/notifier/shared/follow/auto-follow-for-instance.ts b/server/lib/notifier/shared/follow/auto-follow-for-instance.ts index 01d2b3563..ab9747ba8 100644 --- a/server/lib/notifier/shared/follow/auto-follow-for-instance.ts +++ b/server/lib/notifier/shared/follow/auto-follow-for-instance.ts | |||
@@ -24,8 +24,8 @@ export class AutoFollowForInstance extends AbstractNotification <MActorFollowFul | |||
24 | return this.admins | 24 | return this.admins |
25 | } | 25 | } |
26 | 26 | ||
27 | async createNotification (user: MUserWithNotificationSetting) { | 27 | createNotification (user: MUserWithNotificationSetting) { |
28 | const notification = await UserNotificationModel.create<UserNotificationModelForApi>({ | 28 | const notification = UserNotificationModel.build<UserNotificationModelForApi>({ |
29 | type: UserNotificationType.AUTO_INSTANCE_FOLLOWING, | 29 | type: UserNotificationType.AUTO_INSTANCE_FOLLOWING, |
30 | userId: user.id, | 30 | userId: user.id, |
31 | actorFollowId: this.actorFollow.id | 31 | actorFollowId: this.actorFollow.id |