diff --git a/src/common/schema/notificationFlagsSchema.ts b/src/common/schema/notificationFlagsSchema.ts index 96c3e19e98..0460204b67 100644 --- a/src/common/schema/notificationFlagsSchema.ts +++ b/src/common/schema/notificationFlagsSchema.ts @@ -15,6 +15,7 @@ export const notificationFlagsSchema = z.strictObject({ [NotificationType.PostMention]: notificationPreferenceSchema, [NotificationType.CommentMention]: notificationPreferenceSchema, [NotificationType.ArticleReportApproved]: notificationPreferenceSchema, + [NotificationType.UserFollow]: notificationPreferenceSchema, [NotificationType.StreakResetRestore]: notificationPreferenceSchema, [UserPersonalizedDigestType.StreakReminder]: notificationPreferenceSchema, [NotificationType.UserTopReaderBadge]: notificationPreferenceSchema, diff --git a/src/notifications/common.ts b/src/notifications/common.ts index d89ebb245f..413a5b79e4 100644 --- a/src/notifications/common.ts +++ b/src/notifications/common.ts @@ -163,6 +163,10 @@ export const DEFAULT_NOTIFICATION_SETTINGS: UserNotificationFlags = { email: NotificationPreferenceStatus.Subscribed, inApp: NotificationPreferenceStatus.Subscribed, }, + [NotificationType.UserFollow]: { + email: NotificationPreferenceStatus.Subscribed, + inApp: NotificationPreferenceStatus.Subscribed, + }, [NotificationType.StreakResetRestore]: { email: NotificationPreferenceStatus.Subscribed, inApp: NotificationPreferenceStatus.Subscribed,