From 3f6581f119cb46e5fa9342ed8129d66953292c1d Mon Sep 17 00:00:00 2001 From: ekzyis Date: Sun, 23 Jun 2024 19:15:26 +0200 Subject: [PATCH] Fix user popover if mention inside link (#1245) --- components/text.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/text.js b/components/text.js index 4be86e54..c65a7396 100644 --- a/components/text.js +++ b/components/text.js @@ -200,8 +200,10 @@ export default memo(function Text ({ rel, imgproxyUrls, children, tab, itemId, o ) } if (text.startsWith?.('@')) { + // user mention might be within a markdown link like this: [@user foo bar](url) + const name = text.replace('@', '').split(' ')[0] return ( - +