From cda50199182945a3639377960a373c87611e0ac2 Mon Sep 17 00:00:00 2001 From: indifferentketchup Date: Fri, 10 Apr 2026 20:16:18 +0000 Subject: [PATCH] manual commit 2026-04-10T20:16:18Z --- services/gmail.js | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/services/gmail.js b/services/gmail.js index bb8f397..69189ce 100644 --- a/services/gmail.js +++ b/services/gmail.js @@ -276,7 +276,6 @@ async function sendGmailReply( const safeUser = escapeHtml(discordUser); const safeReply = escapeHtml(replyText).replace(/\n/g, '
'); const safeLogoUrl = escapeHtml(CONFIG.LOGO_URL || ''); - const safeSignature = escapeHtml(CONFIG.SIGNATURE || ''); // Get staff signature if userId provided let signatureBlocks = { text: '', html: '' }; @@ -284,23 +283,26 @@ async function sendGmailReply( signatureBlocks = await getStaffSignatureBlocks(userId); } + const companySignatureHtml = ` + + + + + +
+ ${safeLogoUrl ? `` : ''} + +

${safeUser}

+
${escapeHtml(CONFIG.SIGNATURE || '').replace(/\n/g, '
')}
+
`; + const htmlBody = `

From: ${safeUser} on Discord

${safeReply}

+ ${signatureBlocks.html ? `

${signatureBlocks.html.replace(/\n/g, '
')}

` : ''}
- - - - - -
- ${safeLogoUrl ? `` : ''} - - ${signatureBlocks.html || `

${safeUser}

`} - ${signatureBlocks.html ? '
' : ''} - ${signatureBlocks.html ? signatureBlocks.html : `
${safeSignature}
`} -
+ ${companySignatureHtml}
`; const headers = [