]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix email notification
authorChocobozzz <me@florianbigard.com>
Tue, 19 Mar 2019 15:41:41 +0000 (16:41 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 19 Mar 2019 15:41:41 +0000 (16:41 +0100)
server/initializers/checker-after-init.ts
server/lib/notifier.ts

index a99dbba3713effd5dfd4be4f7cd5c6389c1229d9..85f7522848cd888f3a14605ba8a28ce5df125a51 100644 (file)
@@ -61,7 +61,6 @@ function checkConfig () {
 
   // Redundancies
   const redundancyVideos = CONFIG.REDUNDANCY.VIDEOS.STRATEGIES
-  console.log(redundancyVideos)
   if (isArray(redundancyVideos)) {
     const available = [ 'most-views', 'trending', 'recently-added' ]
     for (const r of redundancyVideos) {
index 9cdd603a3714ed48153fab66004a6c8e6228eb9d..501680f6b07ca8fdd9ffcc0a535d68747d7cac03 100644 (file)
@@ -439,7 +439,7 @@ class Notifier {
   }
 
   private isEmailEnabled (user: UserModel, value: UserNotificationSettingValue) {
-    if (CONFIG.SIGNUP.REQUIRES_EMAIL_VERIFICATION === true && user.emailVerified !== true) return false
+    if (CONFIG.SIGNUP.REQUIRES_EMAIL_VERIFICATION === true && user.emailVerified === false) return false
 
     return value & UserNotificationSettingValue.EMAIL
   }