diff --git a/JS/BlueskyAPI.js b/JS/BlueskyAPI.js
index 99eb17d..bf7048b 100644
--- a/JS/BlueskyAPI.js
+++ b/JS/BlueskyAPI.js
@@ -350,6 +350,11 @@ export function ApplyFacets(record, text) {
SplitAreas.push(i.index.byteEnd);
Hrefs.push(i.features[0].uri);
}
+ if (i.features[0].$type == "app.bsky.richtext.facet#tag") {
+ SplitAreas.push(i.index.byteStart);
+ SplitAreas.push(i.index.byteEnd);
+ Hrefs.push("https://bsky.app/hashtag/" + i.features[0].tag);
+ }
}
// Last minute append.
SplitAreas.push(text.length);
@@ -365,8 +370,8 @@ export function ApplyFacets(record, text) {
}
// Finally, we append the string with
for (let i = 0; i < StringArray.length; i += 2) {
- if (Hrefs[(i / 2)] != undefined) {
- TempText += StringArray[i] + "" + StringArray[i + 1] + "";
+ if (Hrefs[(i / 2)] != undefined && Hrefs[(i / 2)].split("https://").length != 1) {
+ TempText += StringArray[i] + "" + StringArray[i + 1] + "";
} else {
TempText += StringArray[i];
}