aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillermo Serrahima <dev@vylion.com>2026-03-21 02:25:01 +0100
committerGuillermo Serrahima <dev@vylion.com>2026-03-21 02:25:01 +0100
commitb7fe11cbe9915a870d2e5c6d18dd01057218debf (patch)
tree0fb49ab4b1dbe7455e30d6331b554807e641372d
parent41b2943dba9993bd4b8c5a6e4546d8e23dce7662 (diff)
downloadllostre-b7fe11cbe9915a870d2e5c6d18dd01057218debf.tar.xz
llostre-b7fe11cbe9915a870d2e5c6d18dd01057218debf.zip
Fixed doubled # and @ for facets
-rw-r--r--frontend/src/main.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/frontend/src/main.ts b/frontend/src/main.ts
index 306578d..9ede3bc 100644
--- a/frontend/src/main.ts
+++ b/frontend/src/main.ts
@@ -49,10 +49,10 @@ function convertFacets(text: string, facets: any[], toMarkown: boolean): string
result += `[${facetText}](${facet.value})`;
break;
case 'mention':
- result += `[@${facetText}](https://bsky.app/profile/${facet.value})`;
+ result += `[${facetText}](https://bsky.app/profile/${facet.value})`;
break;
case 'tag':
- result += `[#${facetText}](https://bsky.app/hashtag/${facet.value})`;
+ result += `[${facetText}](https://bsky.app/hashtag/${facet.value})`;
break;
default: // in case Bluesky ever adds other facet types
result += facetText; // if we don't recognize the type, just add it as plain text
@@ -67,7 +67,7 @@ function convertFacets(text: string, facets: any[], toMarkown: boolean): string
result += `<a href="https://bsky.app/profile/${facet.value}" target="_blank">${facetText}</a>`;
break;
case 'tag':
- result += `<a href="https://bsky.app/hashtag/${facet.value}" target="_blank">#${facetText}</a>`;
+ result += `<a href="https://bsky.app/hashtag/${facet.value}" target="_blank">${facetText}</a>`;
break;
default:
result += facetText;