mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-08 02:52:39 -05: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue