1
0
Fork 0

Fix email notification

This commit is contained in:
Chocobozzz 2019-03-19 16:41:41 +01:00
parent d85798c4e7
commit 1ed9b8ee69
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 1 additions and 2 deletions

View 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) {

View 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
}