mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 07:25:46 +01:00
updates to email logo usage
This commit is contained in:
@@ -31,11 +31,18 @@ Emailer._defaultPayload = {};
|
||||
Emailer.registerApp = function (expressApp) {
|
||||
app = expressApp;
|
||||
|
||||
var logo = null;
|
||||
if (meta.configs.hasOwnProperty('brand:emailLogo')) {
|
||||
logo = nconf.get('url') + meta.configs['brand:emailLogo'];
|
||||
} else if (meta.config.hasOwnProperty('brand:logo')) {
|
||||
logo = nconf.get('url') + meta.config['brand:logo'].replace('.png', '-x50.png');
|
||||
}
|
||||
|
||||
Emailer._defaultPayload = {
|
||||
url: nconf.get('url'),
|
||||
site_title: meta.config.title || 'NodeBB',
|
||||
logo: {
|
||||
src: meta.config['brand:logo'] ? nconf.get('url') + meta.config['brand:logo'].replace('.png', '-x50.png') : null,
|
||||
src: logo,
|
||||
height: meta.config['brand:emailLogo:height'],
|
||||
width: meta.config['brand:emailLogo:width'],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user