Merged v5.33.3 into main

This commit is contained in:
Ghost CI 2023-02-01 11:07:22 +00:00
commit a444d2e703
4 changed files with 7 additions and 5 deletions

View File

@ -79,9 +79,10 @@ export default class EmailPreviewModal extends Component {
} else if (this.args.data.email) {
html = this.args.data.email.html;
subject = this.args.data.email.subject;
// data is a post? try fetching email preview
// data is a post or has no html, try fetching email preview
} else {
let url = this.ghostPaths.url.api('/email_previews/posts', this.args.data.id);
const id = this.args.data.post_id || this.args.data.id;
let url = this.ghostPaths.url.api('/email_previews/posts', id);
let response = await this.ajax.request(url);
let [emailPreview] = response.email_previews;
html = emailPreview.html;

View File

@ -1,6 +1,6 @@
{
"name": "ghost-admin",
"version": "5.33.2",
"version": "5.33.3",
"description": "Ember.js admin client for Ghost",
"author": "Ghost Foundation",
"homepage": "http://ghost.org",

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,

View File

@ -1,6 +1,6 @@
{
"name": "ghost",
"version": "5.33.2",
"version": "5.33.3",
"description": "The professional publishing platform",
"author": "Ghost Foundation",
"homepage": "https://ghost.org",