Emoji letter-avatars 😁

I just implemented this on my site and it’s great! (and kinda hilarious)
Screenshot 2024-04-30 at 10.18.12 AM

Requires a new emoji font for the letter-avatars service, and a plugin to add options to the system avatar template url.

I considered a variety of ways to let the user provide an emoji but I ended up simply extracting the first emoji out of the user’s Name or “About Me” bio.

288

10 Likes

Moved to plugin as implemented! :rocket:

4 Likes

Got to learn all about the joys of unicode :sweat_smile:
I started down the path of supporting emoji in usernames but stopped after seeing discourse puts many guardrails around unicode in usernames.

P.S. thanks to @pfaffman’s name_first_letter plugin as a starting point. If no emoji is found this will fallback to using the first character (using grapheme_clusters) in the Name, and to the username if no Name.

3 Likes