diff --git a/src/modules/fedimbed.js b/src/modules/fedimbed.js index 1f3478d..5edb4ad 100644 --- a/src/modules/fedimbed.js +++ b/src/modules/fedimbed.js @@ -159,7 +159,11 @@ function processBlueskyFacets(str, facets) { for (const feature of part.features) { switch (feature.$type) { case "app.bsky.richtext.facet#link": { - if (part.text == feature.uri.replace(/^https?:\/\//, "") || part.text.endsWith("...")) { + if ( + part.text === feature.uri || + part.text === feature.uri.replace(/^https?:\/\//, "") || + part.text.endsWith("...") + ) { part.text = feature.uri; } else { part.text = `[${part.text}](${feature.uri})`;