From ae2db1da16fbe96d4193c0ed6640fa2ede234f74 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Tue, 20 Dec 2016 10:47:37 +0800 Subject: [PATCH] Fix email option in config not parse correctly --- lib/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/config.js b/lib/config.js index 259ecdf5..2d977f51 100644 --- a/lib/config.js +++ b/lib/config.js @@ -98,7 +98,7 @@ var google = (process.env.HMD_GOOGLE_CLIENTID && process.env.HMD_GOOGLE_CLIENTSE clientSecret: process.env.HMD_GOOGLE_CLIENTSECRET } : config.google || false; var imgur = process.env.HMD_IMGUR_CLIENTID || config.imgur || false; -var email = process.env.HMD_EMAIL || config.email || false; +var email = process.env.HMD_EMAIL ? (process.env.HMD_EMAIL === 'true') : !!config.email; function getserverurl() { var url = '';