From 2e38a7b9ec303bcaf4d0a9227468dc5087c3db60 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 7 Aug 2024 17:54:45 -0500 Subject: [PATCH] mentionsCompat: wrap each mention in an h-card span --- src/views/mastodon/statuses.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/mastodon/statuses.ts b/src/views/mastodon/statuses.ts index 86a79cac..f5d8d5bb 100644 --- a/src/views/mastodon/statuses.ts +++ b/src/views/mastodon/statuses.ts @@ -172,7 +172,7 @@ function buildInlineRecipients(mentions: MastodonMention[]): string { const elements = mentions.reduce((acc, { url, username }) => { const name = nip19.BECH32_REGEX.test(username) ? username.substring(0, 8) : username; - acc.push(`@${name}`); + acc.push(`@${name}`); return acc; }, []);