fedimbed.bluesky: copypaste moment

This commit is contained in:
Cynthia Foxwell 2025-03-14 19:54:21 -06:00
parent 232a0f0115
commit ad54973479
Signed by: Cynosphere
SSH key fingerprint: SHA256:H3SM8ufP/uxqLwKSH7xY89TDnbR9uOHzjLoBr0tlajk

View file

@ -477,8 +477,8 @@ async function bluesky(msg, url, spoiler = false) {
embeds.push({...mainEmbed, fields: [{name: "\u200b", value: `[Video Link](${videoUrl})`}]});
} else if (post.embed.media.$type === "app.bsky.embed.external#view") {
if (post.embed.external.uri.includes("tenor.com")) {
const url = new URL(post.embed.external.uri);
if (post.embed.media.external.uri.includes("tenor.com")) {
const url = new URL(post.embed.media.external.uri);
url.searchParams.delete("hh");
url.searchParams.delete("ww");
embeds.push({...mainEmbed, image: {url: url.toString()}});