diff options
author | Chocobozzz <me@florianbigard.com> | 2019-03-19 16:41:41 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-03-19 16:41:41 +0100 |
commit | 1ed9b8ee69ba42b2be70512eb8df239be4676674 (patch) | |
tree | c1dc9275204f808fb366d20338e5ae0360c5bf34 /server | |
parent | d85798c4e7b18f3b464fa819ffc5bec06137e3e9 (diff) | |
download | PeerTube-1ed9b8ee69ba42b2be70512eb8df239be4676674.tar.gz PeerTube-1ed9b8ee69ba42b2be70512eb8df239be4676674.tar.zst PeerTube-1ed9b8ee69ba42b2be70512eb8df239be4676674.zip |
Fix email notification
Diffstat (limited to 'server')
-rw-r--r-- | server/initializers/checker-after-init.ts | 1 | ||||
-rw-r--r-- | server/lib/notifier.ts | 2 |
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 | } |