From 42521444a8a4f06bed159857d8b634c843ca9256 Mon Sep 17 00:00:00 2001 From: Adrian Altner Date: Wed, 22 Apr 2026 01:35:13 +0200 Subject: [PATCH] Refactor Webmentions component to improve display of likes and reposts count --- src/components/Webmentions.astro | 5 +- src/lib/webmentions.ts | 82 +++++++++++++++----------------- 2 files changed, 41 insertions(+), 46 deletions(-) diff --git a/src/components/Webmentions.astro b/src/components/Webmentions.astro index e6cd802..58e9efb 100644 --- a/src/components/Webmentions.astro +++ b/src/components/Webmentions.astro @@ -42,7 +42,7 @@ const hasAny = facepile.length > 0 || replies.length > 0 || mentions.length > 0; {likes.length > 0 && (

- {likes.length} {t(locale, likes.length === 1 ? 'webmentions.like' : 'webmentions.likes')} + {`${likes.length} ${t(locale, likes.length === 1 ? 'webmentions.like' : 'webmentions.likes')}`}