fedimbed.bluesky: forgot to add the logic to main post
This commit is contained in:
parent
705333ac72
commit
3c51db428c
1 changed files with 11 additions and 0 deletions
|
@ -469,6 +469,17 @@ async function bluesky(msg, url, spoiler = false) {
|
|||
|
||||
break;
|
||||
}
|
||||
case "app.bsky.embed.external#view": {
|
||||
if (post.embed.external.uri.includes("tenor.com")) {
|
||||
const url = new URL(post.embed.external.uri);
|
||||
url.searchParams.delete("hh");
|
||||
url.searchParams.delete("ww");
|
||||
embeds.push({...mainEmbed, image: {url: url.toString()}});
|
||||
} else {
|
||||
embeds.push(mainEmbed);
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
embeds.push(mainEmbed);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue