Skip to content
New issue

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

API has different max length for feature_image_alt than editor. API 190 / Editor 125 #22023

Open
1 task done
mheland opened this issue Jan 18, 2025 · 0 comments
Open
1 task done
Labels
needs:triage [triage] this needs to be triaged by the Ghost team

Comments

@mheland
Copy link

mheland commented Jan 18, 2025

Issue Summary

Updating feature_image_alt over admin API allows 190 characters.
The Editor will only allow 125

A feature_image_alt up to 190 characters is accepted when updating a post at /admin/posts/{{id}}

When editing the same posts and saving, the error "Update failed: Feature image alt text cannot be longer than 125 characters." is displayed. See screenshot.

Image

Steps to Reproduce

  1. Update a post over API /admin/posts/{{id}} with string longer than 125 characters, ex { "feature_image_alt" : "The image shows a wet, pink-lit city street with a car in the background and a person in a coat standing in the foreground." }
  2. Open the posts in Editor, attempt to save.

Expecting Editor & admin API to have the same max length, 190 characters

Ghost Version

5.106.1-0-ga963b514+moya

Node.js Version

N/A

How did you install Ghost?

GhostPro

Database type

MySQL 5.7

Browser & OS version

N/A

Relevant log / error output

Update failed: Feature image alt text cannot be longer than 125 characters.

Code of Conduct

  • I agree to be friendly and polite to people in this repository
@github-actions github-actions bot added the needs:triage [triage] this needs to be triaged by the Ghost team label Jan 18, 2025
@mheland mheland changed the title API has different max length for feature_limit_alt than editor. API 190 / Editor 125 API has different max length for feature_image_alt than editor. API 190 / Editor 125 Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs:triage [triage] this needs to be triaged by the Ghost team
Projects
None yet
Development

No branches or pull requests

1 participant