fedimbed.bluesky: force expand truncated links
This commit is contained in:
parent
af3c834ed4
commit
bbb3377a22
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ function processBlueskyFacets(str, facets) {
|
||||||
for (const feature of part.features) {
|
for (const feature of part.features) {
|
||||||
switch (feature.$type) {
|
switch (feature.$type) {
|
||||||
case "app.bsky.richtext.facet#link": {
|
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;
|
part.text = feature.uri;
|
||||||
} else {
|
} else {
|
||||||
part.text = `[${part.text}](${feature.uri})`;
|
part.text = `[${part.text}](${feature.uri})`;
|
||||||
|
|
Loading…
Reference in a new issue