From: Chocobozzz Date: Tue, 18 Feb 2020 07:29:23 +0000 (+0100) Subject: Fix emailer X-Git-Tag: v2.2.0-rc.1~465 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;ds=sidebyside;h=887e1a0376193aa0c53cb2a814eb030750e240cc;hp=134cf2bce96a8c5aefd55154e884964975d8cf23;p=github%2FChocobozzz%2FPeerTube.git Fix emailer --- diff --git a/server/lib/emailer.ts b/server/lib/emailer.ts index d0874ab20..26262972d 100644 --- a/server/lib/emailer.ts +++ b/server/lib/emailer.ts @@ -40,7 +40,7 @@ class Emailer { if (this.initialized === true) return this.initialized = true - if (isEmailEnabled) { + if (isEmailEnabled()) { logger.info('Using %s:%s as SMTP server.', CONFIG.SMTP.HOSTNAME, CONFIG.SMTP.PORT) let tls