From 01c1528b8b0103cbef0f31382bee20c86c0c08c8 Mon Sep 17 00:00:00 2001 From: Xylight Date: Wed, 21 Aug 2024 20:19:15 -0700 Subject: [PATCH] fix: user link detection --- src/lib/components/markdown/renderers/plugins.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/markdown/renderers/plugins.ts b/src/lib/components/markdown/renderers/plugins.ts index d95ed4f0..7003f491 100644 --- a/src/lib/components/markdown/renderers/plugins.ts +++ b/src/lib/components/markdown/renderers/plugins.ts @@ -124,8 +124,8 @@ export const photonify = (link: string) => { if (!match) return // Same as above for the community. - if (match?.[3].includes('@')) return `/c/${match?.[3]}` - else return `/c/${match?.[3]}@${match?.[1]}` + if (match?.[3].includes('@')) return `/u/${match?.[3]}` + else return `/u/${match?.[3]}@${match?.[1]}` } // Support implicit user syntax (no preceding @), by messing with mailto links. if (regexes.implicitUser.test(link)) {