From 67a6e6f8ac315a3d628083fcb63778327dc7313d Mon Sep 17 00:00:00 2001 From: Phillip Thelen Date: Tue, 6 Feb 2024 21:06:44 +0100 Subject: [PATCH] Add Content Release notification type (#15101) --- website/client/src/pages/settings/notificationSettings.vue | 1 + website/common/locales/en/settings.json | 1 + website/server/models/user/schema.js | 2 ++ 3 files changed, 4 insertions(+) diff --git a/website/client/src/pages/settings/notificationSettings.vue b/website/client/src/pages/settings/notificationSettings.vue index 7a5593e1d0..4c0c148f62 100644 --- a/website/client/src/pages/settings/notificationSettings.vue +++ b/website/client/src/pages/settings/notificationSettings.vue @@ -271,6 +271,7 @@ export default { 'onboarding', 'importantAnnouncements', 'subscriptionReminders', + 'contentRelease', ]), // list of email-only notifications onlyEmailsIds: Object.freeze([ diff --git a/website/common/locales/en/settings.json b/website/common/locales/en/settings.json index 56006ba652..b49fab745a 100644 --- a/website/common/locales/en/settings.json +++ b/website/common/locales/en/settings.json @@ -134,6 +134,7 @@ "weeklyRecaps": "Summaries of your account activity in the past week (Note: this is currently disabled due to performance issues, but we hope to have this back up and sending e-mails again soon!)", "onboarding": "Guidance with setting up your Habitica account", "majorUpdates": "Important announcements", + "contentRelease": "Content releases + Events", "subscriptionReminders": "Subscriptions Reminders", "questStarted": "Your Quest has Begun", "invitedQuest": "Invited to Quest", diff --git a/website/server/models/user/schema.js b/website/server/models/user/schema.js index 63a707b82a..27e4846e74 100644 --- a/website/server/models/user/schema.js +++ b/website/server/models/user/schema.js @@ -576,6 +576,7 @@ export const UserSchema = new Schema({ onboarding: { $type: Boolean, default: true }, majorUpdates: { $type: Boolean, default: true }, subscriptionReminders: { $type: Boolean, default: true }, + contentRelease: { $type: Boolean, default: true }, }, pushNotifications: { unsubscribeFromAll: { $type: Boolean, default: false }, @@ -592,6 +593,7 @@ export const UserSchema = new Schema({ mentionJoinedGuild: { $type: Boolean, default: true }, mentionUnjoinedGuild: { $type: Boolean, default: true }, partyActivity: { $type: Boolean, default: true }, + contentRelease: { $type: Boolean, default: true }, }, suppressModals: { levelUp: { $type: Boolean, default: false },