Home

>

Tools

>

Ghost

>

Releases

>

5.45.1

Ghost Release: 5.45.1

Tag Name: v5.45.1

Release Date: 4/25/2023

Ghost LogoGhost

Open-source publishing platform specifically designed for professional bloggers and publications. Focuses on clean, minimalist writing and publishing experience.

TL;DR

Ghost 5.45.1: Post Revision Enhancements & Image Handling Fixes

This patch release focuses on improving the post revision system in Ghost, adding background saves for post revisions, and fixing a critical bug with image handling. The update enhances the post history modal with feature image metadata support and adds Ukrainian localization for the Portal feature. Most importantly, it resolves an issue where pasted images could be stored as inefficient data URLs, potentially causing performance problems throughout the system.

Highlight of the Release

    • Fixed critical bug preventing images pasted from Google Docs and other editors from being properly uploaded
    • Added background saves every 10 minutes for post revisions
    • Enhanced post history modal with feature image metadata support
    • Added Ukrainian localization for Ghost Portal
    • Fixed issue where restoring a post revision wasn't creating a new revision

Migration Guide

No migration steps are required for this update. The release includes automatic handling for any existing posts with data: URLs for images, which will be converted to proper image uploads when the posts are opened in the editor.

Upgrade Recommendations

This update is recommended for all Ghost users, especially those who frequently paste content from external sources like Google Docs into the Ghost editor. The fix for image handling prevents potential performance issues and improves the overall stability of your Ghost installation.

The update is backward compatible and requires no manual intervention after upgrading.

Bug Fixes

  • Image Paste Handling: Fixed critical issue where images pasted from Google Docs and other editors were sometimes stored as data: URLs instead of being properly uploaded. These data URLs created large binary blobs in the database that could cause performance issues throughout the system
  • Post Revision Creation: Fixed bug where restoring a post revision wasn't creating a new revision entry
  • Feature Image Caption Links: Fixed broken links in feature image captions when viewing post history
  • Database Column Type: Fixed column type for feature_image_caption on post revisions to use the TEXT type in MySQL for proper handling of large content

New Features

  • Background Saves for Post Revisions: Automatic saves now occur every 10 minutes for post revisions, ensuring work is preserved even without manual saves
  • Feature Image Metadata in Revisions: Feature image captions and metadata are now visible in the post revision history modal
  • Ukrainian Portal Localization: Added Ukrainian language support for the Ghost Portal feature using informal form
  • ESC Key Support: Added keyboard shortcut (ESC key) to close the post history modal

Security Updates

No specific security fixes were included in this release.

Performance Improvements

  • Image Storage Optimization: By preventing data: URLs from being stored in the database when pasting images, the system avoids storing large binary blobs in the posts table, which improves database performance and reduces unnecessary data transfer throughout the system
  • Database Structure Improvement: Changed the column type for feature_image_caption on post revisions to use the TEXT type in MySQL, which is more appropriate for potentially large content

Impact Summary

Ghost 5.45.1 delivers important improvements to the post revision system and fixes a critical bug with image handling. The release enhances the reliability of the content creation workflow by adding background saves for post revisions and exposing feature image metadata in the revision history.

The most significant fix addresses how pasted images are handled, preventing them from being stored as inefficient data: URLs in the database. This improves system performance and stability, particularly for users who frequently paste content from external sources like Google Docs.

The addition of Ukrainian localization for Portal continues Ghost's commitment to making the platform accessible to more users worldwide. Overall, this patch release focuses on quality-of-life improvements for content creators while addressing underlying technical issues that could impact system performance.

Full Release Notes

Statistics:

File Changed16
Line Additions215
Line Deletions22
Line Changes237
Total Commits10

User Affected:

  • Benefit from more reliable post revision history with automatic background saves every 10 minutes
  • Can now see feature image metadata in post revision history
  • No longer experience issues when pasting images from Google Docs and other editors
  • Can press ESC key to close the post history modal

Contributors:

allouiscmraibleronaldlangeveldnazsanne-sankevinansfieldgithub-actions[bot]