There was an error while loading. Please reload this page.
1 parent c8c423b commit 5006bdcCopy full SHA for 5006bdc
1 file changed
src/api/XMLRPCApi.js
@@ -183,11 +183,13 @@ class XMLRPCApi {
183
var params = []
184
const featured_image_id = images.length > 0 ? images[ 0 ]?.upload_id : null
185
186
- if (images.length > 1) {
187
- const image_markdown = images.map(image => ``).join('\n')
188
- content = `${content}\n\n${image_markdown}`
+ if (images.length > 0) {
+ const image_html = images.map(image => `<img src="${ image.remote_url }" alt="${ image.alt_text ?? "" }">`).join(" ")
+ content = `${content}\n\n${image_html}`
189
}
190
191
+ console.log("XMLRPCApi:send_post content", content)
192
+
193
if (is_wordpress) {
194
// special params if WordPress
195
verb = "wp.newPost"
0 commit comments