🐛 Fixed email header image width not set (#16210)

refs
https://ghost.slack.com/archives/CTH5NDJMS/p1675182725388589?thread_ts=1675181248.903819&cid=CTH5NDJMS

Missing dependency was causing image widths not set
This commit is contained in:
Simon Backx 2023-01-31 18:51:36 +01:00 committed by GitHub
parent 444ca6f5e5
commit 4f889586ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,6 +36,7 @@ class EmailServiceWrapper {
const audienceFeedback = require('../audience-feedback');
const storageUtils = require('../../adapters/storage/utils');
const emailAnalyticsJobs = require('../email-analytics/jobs');
const {imageSize} = require('../../lib/image');
// capture errors from mailgun client and log them in sentry
const errorHandler = (error) => {
@ -60,7 +61,7 @@ class EmailServiceWrapper {
mobiledoc: mobiledocLib.mobiledocHtmlRenderer,
lexical: lexicalLib.lexicalHtmlRenderer
},
imageSize: null,
imageSize,
urlUtils,
storageUtils,
getPostUrl: this.getPostUrl,