fedimbed: use fedi provided avatar

This commit is contained in:
Cynthia Foxwell 2025-04-05 12:35:22 -06:00
parent a911cf7dda
commit 039e5ed7bb
Signed by: Cynosphere
SSH key fingerprint: SHA256:H3SM8ufP/uxqLwKSH7xY89TDnbR9uOHzjLoBr0tlajk

View file

@ -377,6 +377,7 @@ async function blueskyQuoteEmbed(quote) {
}; };
mainEmbed.title = `${authorData.name} (${authorData.preferredUsername}@${domain})`; mainEmbed.title = `${authorData.name} (${authorData.preferredUsername}@${domain})`;
mainEmbed.color = color; mainEmbed.color = color;
mainEmbed.thumbnail.url = authorData?.icon?.url ?? quote.author.avatar;
} }
} }
@ -567,6 +568,7 @@ async function bluesky(msg, url, spoiler = false) {
}; };
mainEmbed.title = `${authorData.name} (${authorData.preferredUsername}@${domain})`; mainEmbed.title = `${authorData.name} (${authorData.preferredUsername}@${domain})`;
mainEmbed.color = color; mainEmbed.color = color;
mainEmbed.thumbnail.url = authorData?.icon?.url ?? post.author.avatar;
} }
} }