polyamspace / mastodon

Custom Mastodon fork used by https://polyam.space
GNU Affero General Public License v3.0
1 stars 2 forks source link

Fix `-selected` added to all categories in emoji picker #503

Closed polyamAdmin closed 5 months ago

polyamAdmin commented 5 months ago

Fixes #410 Follow-up to #352

Apparently emoji-mart needs the name property in emoji categories to determine which category is selected in the picker.

Diff is impossible to view because too large, but this just added name to each object in the categories array with the name values used in old data:

{
  "categories": [{
    "id":"people",
    "emojis":[]
  }]
}

to

{
  "categories":[{
    "id":"people",
    "name":"Smileys & People",
    "emojis":[]
  }]
}
polyamAdmin commented 5 months ago

Interesting. Prod env doesn't pick up this change during precompile (I remember reading something about that a while ago), but running clobber before precompile should fix that.