From d1b8551715c4dd3bb8961b53a3c9406680283bf9 Mon Sep 17 00:00:00 2001 From: Simon Backx Date: Tue, 31 Oct 2023 16:39:35 +0100 Subject: [PATCH] Swapped List-Unsubscribe order to prioritise https over mailto (#18808) refs https://github.com/TryGhost/Product/issues/4053 --- ghost/mailgun-client/lib/MailgunClient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/mailgun-client/lib/MailgunClient.js b/ghost/mailgun-client/lib/MailgunClient.js index 2154fb5f07..adc4da58ee 100644 --- a/ghost/mailgun-client/lib/MailgunClient.js +++ b/ghost/mailgun-client/lib/MailgunClient.js @@ -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'; }