You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a post with the language set to a locale with a country code (e.g. zh-HK)
Obtain the JSON-LD of the post (e.g. using curl -H "Accept: application/json")
Note the keys of the contentMap object
Expected behaviour
The first key of the object should be a valid locale string in accordance with BCP47 (e.g. zh-HK)
Actual behaviour
The first key is in camel-case without a hyphen (e.g. zhHk)
Detailed description
Introduced by #27099. It seems like this is how languages are currently stored in the database, so some conversion is likely needed before sending a post to inboxes.
Mastodon instance
No response
Mastodon version
No response
Technical details
Ruby version: 3.2.2
Node.js version: 18.17.1
The text was updated successfully, but these errors were encountered:
Steps to reproduce the problem
curl -H "Accept: application/json"
)contentMap
objectExpected behaviour
The first key of the object should be a valid locale string in accordance with BCP47 (e.g. zh-HK)
Actual behaviour
The first key is in camel-case without a hyphen (e.g. zhHk)
Detailed description
Introduced by #27099. It seems like this is how languages are currently stored in the database, so some conversion is likely needed before sending a post to inboxes.
Mastodon instance
No response
Mastodon version
No response
Technical details
The text was updated successfully, but these errors were encountered: