eleven / ocho Public

web: add shrug, facepalm, strong, lol emoji shortcodes (#1033)

Rounds out the autocomplete with a few commonly-typed reactions that
weren't discoverable by name (strong/lol already existed as
muscle/joy; shrug and facepalm were missing entirely).

Fixes #451
Co-authored-by: Claude <noreply@anthropic.com>
James Adam 629f24ecd56686503240515c0474405165296393 parent 1aade00
3 files changed, +10 −0
  • changelog/2026-07-15-more-emoji-shortcodes.md +2 −0
  • test/format.test.mjs +7 −0
  • web/static/emoji.js +1 −0
diff --git a/changelog/2026-07-15-more-emoji-shortcodes.md b/changelog/2026-07-15-more-emoji-shortcodes.md
new file mode 100644
index 0000000..fae4ef5
--- /dev/null
+++ b/changelog/2026-07-15-more-emoji-shortcodes.md
@@ -0,0 +1,2 @@
+🤖 A few commonly-typed emoji shortcodes now autocomplete and convert on send:
+`:shrug:` 🤷, `:facepalm:` 🤦, `:strong:` 💪, and `:lol:` 😂.
diff --git a/test/format.test.mjs b/test/format.test.mjs
index 3109b85..58302bb 100644
--- a/test/format.test.mjs
+++ b/test/format.test.mjs
@@ -400,6 +400,13 @@ await test("emojiMatches de-dupes aliases to the same glyph", () => {
assert.equal(new Set(glyphs).size, glyphs.length); // no repeated emoji
});
+await test("emojify: shrug, facepalm, strong and lol shortcodes are known", () => {
+ assert.equal(emojify(":shrug:"), "🤷");
+ assert.equal(emojify(":facepalm:"), "🤦");
+ assert.equal(emojify(":strong:"), "💪");
+ assert.equal(emojify(":lol:"), "😂");
+});
+
await test("youtubeId parses the common URL shapes", () => {
assert.deepEqual(youtubeId("https://www.youtube.com/watch?v=dQw4w9WgXcQ"), { id: "dQw4w9WgXcQ", start: 0 });
assert.deepEqual(youtubeId("https://youtu.be/dQw4w9WgXcQ"), { id: "dQw4w9WgXcQ", start: 0 });
diff --git a/web/static/emoji.js b/web/static/emoji.js
index 75f7de3..89e2e13 100644
--- a/web/static/emoji.js
+++ b/web/static/emoji.js
@@ -34,6 +34,7 @@ export const EMOJI = {
wave: "👋", raised_hands: "🙌", clap: "👏", pray: "🙏", muscle: "💪", point_up: "☝️",
point_down: "👇", point_left: "👈", point_right: "👉", v: "✌️", crossed_fingers: "🤞",
handshake: "🤝", writing_hand: "✍️", eyes: "👀", brain: "🧠", baby: "👶",
+ shrug: "🤷", facepalm: "🤦", strong: "💪", lol: "😂",
// animals & nature
dog: "🐶", cat: "🐱", mouse: "🐭", fox: "🦊", bear: "🐻", panda_face: "🐼", koala: "🐨",
tiger: "🐯", lion: "🦁", cow: "🐮", pig: "🐷", frog: "🐸", monkey_face: "🐵", chicken: "🐔",