Fixed missing image dimensions in meta tags with non-local storage#28773
Fixed missing image dimensions in meta tags with non-local storage#28773allouis wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
🚧 Files skipped from review as they are similar to previous changes (3)
Walkthrough
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx run ghost:test:ci:legacy |
✅ Succeeded | 2m 59s | View ↗ |
nx build @tryghost/announcement-bar |
✅ Succeeded | <1s | View ↗ |
nx build @tryghost/comments-ui |
✅ Succeeded | <1s | View ↗ |
nx build @tryghost/activitypub |
✅ Succeeded | 1s | View ↗ |
nx build @tryghost/signup-form |
✅ Succeeded | <1s | View ↗ |
nx build @tryghost/admin-toolbar |
✅ Succeeded | <1s | View ↗ |
nx build @tryghost/sodo-search |
✅ Succeeded | <1s | View ↗ |
nx build @tryghost/portal |
✅ Succeeded | <1s | View ↗ |
Additional runs (6) |
✅ Succeeded | ... | View ↗ |
💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗
☁️ Nx Cloud last updated this comment at 2026-06-23 09:02:42 UTC
a4adeda to
464881e
Compare
bf8d576 to
b842e8c
Compare
fixes https://linear.app/tryghost/issue/INC-300 - read() was left unimplemented when the adapter was added (9f0c353), as files and media flows never needed it - image dimension lookups (ghost_head social meta) do call storage.read() for local-style /content/images/ URLs; with S3 configured as the images adapter this threw a critical IncorrectUsageError, flooding logs on every page render and dropping image dimensions - implemented read() as a native S3 GetObject so the existing image-size flow works unchanged; results are already cached by CachedImageSizeFromUrl, so it's one fetch per image, not per render - resizing (handle-image-sizes) still doesn't need read under S3: those requests terminate at the CDN and never reach Ghost Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
b842e8c to
9f029fd
Compare

ref https://linear.app/tryghost/issue/HKG-1865