Update ogImage.tsx

This commit is contained in:
enneaa 2025-03-31 21:31:17 +08:00 committed by GitHub
parent 3cacf7a554
commit 6925624e30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,9 +55,8 @@ async function generateSocialImage(
fonts,
loadAdditionalAsset: async (languageCode: string, segment: string) => {
if (languageCode === "emoji") {
return await loadEmoji(getIconCode(segment))
return `data:image/svg+xml;base64,${btoa(await loadEmoji(getIconCode(segment)))}`
}
return languageCode
},
})