We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editing a post, using Ghost API, that has a figure with a link inside replaces the link with an image.
<figure class=\"kg-card kg-bookmark-card\"><a class=\"kg-bookmark-container\" href=\"__GHOST_URL__/article-url/\"><div class=\"kg-bookmark-content\"><div class=\"kg-bookmark-title\">Some title</div><div class=\"kg-bookmark-description\">Some text</div><div class=\"kg-bookmark-metadata\"><img class=\"kg-bookmark-icon\" src=\"__GHOST_URL__/content/images/size/w256h256/2022/08/512pt_@1x.png\" alt=\"\"><span class=\"kg-bookmark-author\">Ghost Blog</span><span class=\"kg-bookmark-publisher\">Author</span></div></div><div class=\"kg-bookmark-thumbnail\"><img src=\"__GHOST_URL__/content/images/2023/10/cover.jpg\" alt=\"\"></div></a></figure>
const postsRaw = await api.posts.browse({ formats: 'html', limit: 'all' }) for await (const post of postsRaw) { try { await api.posts.edit({ id: post.id, updated_at: post?.updated_at, html: post.html }, { source: 'html' }) } catch (e) { console.log(`Error while updating post ${(post.id}!`, e) } }
<figure class=\"kg-card kg-image-card\"><img src=\"__GHOST_URL__/content/images/size/w256h256/2022/08/512pt_@1x.png\" class=\"kg-image\" alt=\"\" loading=\"lazy\"></figure>
5.75.2 local, reproduced in 5.54.0 production too
16.13.0
Followed this guide: https://ghost.org/docs/install/local/. OS: Fedora 39
SQLite3
No response
The text was updated successfully, but these errors were encountered:
Hey there, thank you so much for the bug report.
That does look like something that shouldn't happen! A PR to fix this issue would be very welcome 🙂
Sorry, something went wrong.
No branches or pull requests
Issue Summary
Editing a post, using Ghost API, that has a figure with a link inside replaces the link with an image.
Steps to Reproduce
Ghost Version
5.75.2 local, reproduced in 5.54.0 production too
Node.js Version
16.13.0
How did you install Ghost?
Followed this guide: https://ghost.org/docs/install/local/. OS: Fedora 39
Database type
SQLite3
Browser & OS version
No response
Relevant log / error output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: