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.librecmc.org/?a=commitdiff_plain;h=887e1a0376193aa0c53cb2a814eb030750e240cc;p=oweals%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