mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: restored email logo to all outgoing emails
This commit is contained in:
@@ -142,7 +142,7 @@ Emailer.registerApp = function (expressApp) {
|
||||
app = expressApp;
|
||||
|
||||
var logo = null;
|
||||
if (meta.configs.hasOwnProperty('brand:emailLogo')) {
|
||||
if (meta.config.hasOwnProperty('brand:emailLogo')) {
|
||||
logo = (!meta.config['brand:emailLogo'].startsWith('http') ? nconf.get('url') : '') + meta.config['brand:emailLogo'];
|
||||
}
|
||||
|
||||
|
||||
@@ -163,6 +163,7 @@ function processConfig(data, callback) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
data['brand:emailLogo'] = nconf.get('url') + path.join(nconf.get('upload_url'), 'system', 'site-logo-x50.png');
|
||||
data['brand:emailLogo:height'] = size.height;
|
||||
data['brand:emailLogo:width'] = size.width;
|
||||
next();
|
||||
|
||||
@@ -173,7 +173,7 @@
|
||||
<tr>
|
||||
<td style="padding: 20px 0; text-align: center">
|
||||
<!-- IF logo.src -->
|
||||
<img src="{logo.src}" height="{logo.height}" width="{logo.width}" alt="{site_title}" border="0" style="height: {logo.height}px; width: {logo.width}px; background: #222222; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;">
|
||||
<img src="{logo.src}" height="{logo.height}" width="{logo.width}" alt="{site_title}" border="0" style="height: {logo.height}px; width: {logo.width}px; background: #f6f6f6; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #333333;">
|
||||
<!-- ELSE -->
|
||||
|
||||
<!-- ENDIF logo.src -->
|
||||
|
||||
Reference in New Issue
Block a user