From bbb3377a228fd663cc90f22032b8ddd6e73b8dce Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Wed, 13 Nov 2024 16:16:33 -0700 Subject: [PATCH] fedimbed.bluesky: force expand truncated links --- src/modules/fedimbed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/fedimbed.js b/src/modules/fedimbed.js index cf7ca0a..bb4e666 100644 --- a/src/modules/fedimbed.js +++ b/src/modules/fedimbed.js @@ -151,7 +151,7 @@ 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?:\/\//, "")) { + if (part.text == feature.uri.replace(/^https?:\/\//, "") || part.text.endsWith("...")) { part.text = feature.uri; } else { part.text = `[${part.text}](${feature.uri})`;