mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Fix email notification
This commit is contained in:
parent
d85798c4e7
commit
1ed9b8ee69
2 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue