mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-09-11 20:57:21 +03:00
Fixed mailto unsubscribe header to only unsubscribe current tags (#18995)
ref GRO-20 The currently set mailto variable would subscribe for all mailgun tags instead of only the tags of the specific email.
This commit is contained in:
parent
566f2055d0
commit
41e7978897
@ -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'] = '<%recipient.list_unsubscribe%>, <%unsubscribe_email%>';
|
||||
messageData['h:List-Unsubscribe'] = '<%recipient.list_unsubscribe%>, <%tag_unsubscribe_email%>';
|
||||
messageData['h:List-Unsubscribe-Post'] = 'List-Unsubscribe=One-Click';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user