Allow non-ASCII characters in emoji names - #2572
Conversation
|
Non-ASCII emoji-names are currently allowed in Pleroma. This PR was also sent to upstream Mastodon, and rejected on anglocentric grounds: |
|
Sadly not a maintainer here but I'd also enjoy having this functionality. |
|
I agree with mastodon#28572 (comment) on the specific example, but I see the value in allowing non-ASCII characters in such identifiers. Since it's not going to be accepted by upstream Mastodon, I'm not sure it's worth allowing local non-ASCII custom emoji shortcodes, but I think allowing non-ASCII shortcodes for remote custom emoji makes sense. This will prevent copying them as-is, though, so that would require some special handling… |
Keep in mind there are mastodon instances in languages this very moment that do not fit the ASCII character set (Instances in Japanese, Mandarin, Hindi and the list goes on) |
11bd515 to
7821634
Compare
Tweaks the emoji shortcode regex to allow non-ASCII alphanumeric characters; this is for internationalization, to allow emoji names to be in languages that don’t fall within ASCII.