aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/initializers/checker-after-init.ts1
-rw-r--r--server/lib/notifier.ts2
2 files changed, 1 insertions, 2 deletions
diff --git a/server/initializers/checker-after-init.ts b/server/initializers/checker-after-init.ts
index a99dbba37..85f752284 100644
--- a/server/initializers/checker-after-init.ts
+++ b/server/initializers/checker-after-init.ts
@@ -61,7 +61,6 @@ function checkConfig () {
61 61
62 // Redundancies 62 // Redundancies
63 const redundancyVideos = CONFIG.REDUNDANCY.VIDEOS.STRATEGIES 63 const redundancyVideos = CONFIG.REDUNDANCY.VIDEOS.STRATEGIES
64 console.log(redundancyVideos)
65 if (isArray(redundancyVideos)) { 64 if (isArray(redundancyVideos)) {
66 const available = [ 'most-views', 'trending', 'recently-added' ] 65 const available = [ 'most-views', 'trending', 'recently-added' ]
67 for (const r of redundancyVideos) { 66 for (const r of redundancyVideos) {
diff --git a/server/lib/notifier.ts b/server/lib/notifier.ts
index 9cdd603a3..501680f6b 100644
--- a/server/lib/notifier.ts
+++ b/server/lib/notifier.ts
@@ -439,7 +439,7 @@ class Notifier {
439 } 439 }
440 440
441 private isEmailEnabled (user: UserModel, value: UserNotificationSettingValue) { 441 private isEmailEnabled (user: UserModel, value: UserNotificationSettingValue) {
442 if (CONFIG.SIGNUP.REQUIRES_EMAIL_VERIFICATION === true && user.emailVerified !== true) return false 442 if (CONFIG.SIGNUP.REQUIRES_EMAIL_VERIFICATION === true && user.emailVerified === false) return false
443 443
444 return value & UserNotificationSettingValue.EMAIL 444 return value & UserNotificationSettingValue.EMAIL
445 } 445 }