Mastodon: Shortcodes in display names no longer render to emoji

Created on 24 Jul 2017  ·  5Comments  ·  Source: tootsuite/mastodon

People have noticed that shortcodes in display names are no longer rendering as emoji on master; see https://dev.glitch.social/users/MightyPork/updates/9587 . I've noticed #4189 or #4202 as recent emoji-related pulls; is this related to those or is something else interfering?


  • [x] I searched or browsed the repo’s other issues to ensure this is not a duplicate.
  • [ ] This bug happens on a tagged release and not on master (If you're a user, don't worry about this).

Most helpful comment

It's probably reasonable to fix this for local users in a sidekiq task. I think figuring out how to run cleanup/integrity-type background tasks as a migration-like action is useful and comes up often enough that we should put work into fixing this.

All 5 comments

Folks must re-save their profile. Shortcodes will be converted to unicode then. The JS no longer handles shortcodes.

We could probably have a db:migrate thing that does that automatically?

You may know that updates on the display_name column take relatively long because of a search index. It's not a viable migrate. It's also a task in ruby code, meaning each row update would have to go through ruby.

It's probably reasonable to fix this for local users in a sidekiq task. I think figuring out how to run cleanup/integrity-type background tasks as a migration-like action is useful and comes up often enough that we should put work into fixing this.

I think this is mostly a non-issue because over time more and more people just update their profile, especially if they see the shortcode instead of the emoji.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

golbette picture golbette  ·  3Comments

KellerFuchs picture KellerFuchs  ·  3Comments

almafeta picture almafeta  ·  3Comments

cumbiame picture cumbiame  ·  3Comments

marrus-sh picture marrus-sh  ·  3Comments