From: Chocobozzz Date: Tue, 19 Mar 2019 15:41:41 +0000 (+0100) Subject: Fix email notification X-Git-Tag: v1.3.0-rc.1~123 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=1ed9b8ee69ba42b2be70512eb8df239be4676674;p=github%2FChocobozzz%2FPeerTube.git Fix email notification --- 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 () { // 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) { 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 { } 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 }