fedimbed.bluesky: force expand truncated links

This commit is contained in:
Cynthia Foxwell 2024-11-13 16:16:33 -07:00
parent af3c834ed4
commit bbb3377a22

View file

@ -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})`;