mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Updated mega service to use open tracking from settings
refs https://github.com/TryGhost/Ghost/issues/12390 - switched from enabling open tracking based on `enableDeveloperExperiments` to using the track-opens setting
This commit is contained in:
parent
ea77f3f349
commit
a8d8598003
1 changed files with 2 additions and 2 deletions
|
@ -71,7 +71,7 @@ const sendTestEmail = async (postModel, toEmails) => {
|
|||
}));
|
||||
|
||||
// enable tracking for previews to match real-world behaviour
|
||||
emailData.track_opens = config.get('enableDeveloperExperiments');
|
||||
emailData.track_opens = settingsCache.get('email_track_opens');
|
||||
|
||||
const response = await bulkEmailService.send(emailData, recipients);
|
||||
|
||||
|
@ -140,7 +140,7 @@ const addEmail = async (postModel, options) => {
|
|||
html: emailData.html,
|
||||
plaintext: emailData.plaintext,
|
||||
submitted_at: moment().toDate(),
|
||||
track_opens: config.get('enableDeveloperExperiments'),
|
||||
track_opens: settingsCache.get('email_track_opens'),
|
||||
recipient_filter: emailRecipientFilter
|
||||
}, knexOptions);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue