From 99cfc0e2f16732da4506f08391d7ac647ded8cec Mon Sep 17 00:00:00 2001 From: Harlan Wilton Date: Wed, 7 Oct 2026 00:21:14 +1100 Subject: [PATCH] fix(trending): strip post emoji on the server only MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Production boards failed hydration after #473. The excerpt helper stripped emoji on both sides, and Node 24 and Chrome 145 disagree about which characters are emoji (`β˜…`), so the server and the browser rendered different quote text. The loader now strips once, and the page renders the text it receives. --- .../app/components/TrendingPostCard.vue | 6 ++-- shared/server/trending-skills.ts | 34 +++++++++++++++++-- shared/trending-post.ts | 25 +++----------- test/unit/trending-post.test.ts | 33 +++--------------- test/unit/trending-skills.test.ts | 27 ++++++++++++++- 5 files changed, 68 insertions(+), 57 deletions(-) diff --git a/layers/marketing/app/components/TrendingPostCard.vue b/layers/marketing/app/components/TrendingPostCard.vue index cc181e14..ad851f61 100644 --- a/layers/marketing/app/components/TrendingPostCard.vue +++ b/layers/marketing/app/components/TrendingPostCard.vue @@ -1,7 +1,7 @@