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/lib | |
parent | d85798c4e7b18f3b464fa819ffc5bec06137e3e9 (diff) | |
download | PeerTube-1ed9b8ee69ba42b2be70512eb8df239be4676674.tar.gz PeerTube-1ed9b8ee69ba42b2be70512eb8df239be4676674.tar.zst PeerTube-1ed9b8ee69ba42b2be70512eb8df239be4676674.zip |
Fix email notification
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/notifier.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 | } |