From ca50bfee9322499bc4a18b6249e0c756e115f877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Fri, 15 May 2026 10:33:03 +0200 Subject: [PATCH] Correctly substitute emojis with twemoji in notification teasers --- src/lib/notification.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/notification.ts b/src/lib/notification.ts index b1a323197..398260a34 100644 --- a/src/lib/notification.ts +++ b/src/lib/notification.ts @@ -2,7 +2,7 @@ import type { ActionWithAuthor } from "@bindings/cob/inbox/ActionWithAuthor"; import type { Action as IssueAction } from "@bindings/cob/issue/Action"; import type { Action as PatchAction } from "@bindings/cob/patch/Action"; -import { formatOid, pluralize } from "@app/lib/utils"; +import { emojiToTwemoji, formatOid, pluralize } from "@app/lib/utils"; export type Action = | ActionWithAuthor @@ -73,7 +73,7 @@ export function createSummary( } else if (lastAction.type === "review.comment") { summary = `left ${count > 1 ? count : "a"} review ${pluralize("comment", count)}`; } else if (a.every(e => e.type === "comment.react")) { - const reactions = a.map(i => i.reaction).slice(0, 10); + const reactions = a.map(i => emojiToTwemoji(i.reaction)).slice(0, 10); summary = `reacted with ${[ ...reactions, ...(a.length >= 11 ? ["%…%"] : []),