mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 22:11:09 +03:00
Merged v5.33.3 into main
This commit is contained in:
commit
a444d2e703
@ -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;
|
||||
|
@ -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",
|
||||
|
@ -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,
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user