fedimbed.bluesky: fix quoted embeds

This commit is contained in:
Cynthia Foxwell 2024-11-09 00:07:16 -07:00
parent a1052066d4
commit 6494ee3226

View file

@ -139,7 +139,7 @@ async function blueskyQuoteEmbed(quote, videos) {
}; };
if (quote.embeds?.[0]) { if (quote.embeds?.[0]) {
const embed = embeds[0]; const embed = quote.embeds[0];
switch (embed.$type) { switch (embed.$type) {
case "app.bsky.embed.images#view": { case "app.bsky.embed.images#view": {
embeds.push(...embed.images.map((image) => ({...mainEmbed, image: {url: image.fullsize}}))); embeds.push(...embed.images.map((image) => ({...mainEmbed, image: {url: image.fullsize}})));