Swapped List-Unsubscribe order to prioritise https over mailto (#18808)
refs https://github.com/TryGhost/Product/issues/4053
This commit is contained in:
parent
4d727c9667
commit
d1b8551715
@ -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';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user