mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Fixed data generator not setting posts.plaintext
value
no issue - without `plaintext` set the API will not add generated excerpts to responses
This commit is contained in:
parent
66f7911d24
commit
f9cc2bec0d
1 changed files with 1 additions and 0 deletions
|
@ -81,6 +81,7 @@ class PostsImporter extends TableImporter {
|
|||
])
|
||||
}),
|
||||
html: content.map(paragraph => `<p>${paragraph}</p>`).join(''),
|
||||
plaintext: content.join('\n\n'),
|
||||
email_recipient_filter: 'all',
|
||||
newsletter_id: this.type === 'post' && status === 'published' && luck(90) ? (visibility === 'paid' ? this.newsletters[0].id : this.newsletters[1].id) : null
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue