Swapped List-Unsubscribe order to prioritise https over mailto (#18808)

refs https://github.com/TryGhost/Product/issues/4053
This commit is contained in:
Simon Backx 2023-10-31 16:39:35 +01:00 committed by GitHub
parent 4d727c9667
commit d1b8551715
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ module.exports = class MailgunClient {
// Do we have a custom List-Unsubscribe header set?
// (we need a variable for this, as this is a per-email setting)
if (Object.keys(recipientData)[0] && recipientData[Object.keys(recipientData)[0]].list_unsubscribe) {
messageData['h:List-Unsubscribe'] = '<%unsubscribe_email%>, <%recipient.list_unsubscribe%>';
messageData['h:List-Unsubscribe'] = '<%recipient.list_unsubscribe%>, <%unsubscribe_email%>';
messageData['h:List-Unsubscribe-Post'] = 'List-Unsubscribe=One-Click';
}