mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
🐛 Fixed 1.25 migration for mobiledoc field being null (#9752)
refs #9751 - the mobiledoc field can be null - e.g. if you import a JSON with no markdown/mobiledoc or html field The migration script for 1.25 had only the purpose to migrate existing Koenig Beta posts.
This commit is contained in:
parent
701c688474
commit
6a9fe1e10c
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ module.exports.up = function regenerateKoenigBetaHTML(options) {
|
|||
|
||||
if (
|
||||
post.get('html').match(/^<div class="kg-post">/)
|
||||
|| !mobiledocIsCompatibleWithV1(mobiledoc)
|
||||
|| (mobiledoc && !mobiledocIsCompatibleWithV1(mobiledoc))
|
||||
) {
|
||||
// change imagecard.payload.imageStyle to imagecard.payload.cardWidth
|
||||
mobiledoc.cards.forEach((card) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue