From a8d85980031d53ba488bc8f845b6908d52709cca Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Mon, 23 Nov 2020 18:53:55 +0000 Subject: [PATCH] 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 --- core/server/services/mega/mega.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/server/services/mega/mega.js b/core/server/services/mega/mega.js index bf831459b5..952549596a 100644 --- a/core/server/services/mega/mega.js +++ b/core/server/services/mega/mega.js @@ -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 {