Skip to content

Conversation

@nattsw
Copy link
Contributor

@nattsw nattsw commented Feb 14, 2025

In posts where there is a just an image, the stripped text that is sent for locale detection can be ...

<p></p>

... as we do not send HTML for the image for locale detection. The stripped text would result in a "" returned for detected locale, which would result in

Detected locale can't be blank

This PR defaults the post to the site's locale. This is needed so that we do not keep sending the post to check the locale.

@nattsw nattsw merged commit e635b47 into main Feb 14, 2025
5 checks passed
@nattsw nattsw deleted the stripped-post-locale branch February 14, 2025 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants