Fix email notification
This commit is contained in:
parent
d85798c4e7
commit
1ed9b8ee69
|
@ -61,7 +61,6 @@ function checkConfig () {
|
||||||
|
|
||||||
// Redundancies
|
// Redundancies
|
||||||
const redundancyVideos = CONFIG.REDUNDANCY.VIDEOS.STRATEGIES
|
const redundancyVideos = CONFIG.REDUNDANCY.VIDEOS.STRATEGIES
|
||||||
console.log(redundancyVideos)
|
|
||||||
if (isArray(redundancyVideos)) {
|
if (isArray(redundancyVideos)) {
|
||||||
const available = [ 'most-views', 'trending', 'recently-added' ]
|
const available = [ 'most-views', 'trending', 'recently-added' ]
|
||||||
for (const r of redundancyVideos) {
|
for (const r of redundancyVideos) {
|
||||||
|
|
|
@ -439,7 +439,7 @@ class Notifier {
|
||||||
}
|
}
|
||||||
|
|
||||||
private isEmailEnabled (user: UserModel, value: UserNotificationSettingValue) {
|
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
|
return value & UserNotificationSettingValue.EMAIL
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue