fallback to hybridGraph

This commit is contained in:
Shinigami92 2022-12-12 16:06:35 +01:00
parent a4eae9891b
commit bd0a2517c6

View file

@ -45,7 +45,7 @@ export default defineEventHandler(async (event) => {
if (!ogImageUrl) {
const response = await getOpenGraphClient().getSiteInfo(cardUrl)
ogImageUrl = response?.openGraph?.image?.url ?? ''
ogImageUrl = response?.openGraph?.image?.url || response?.hybridGraph?.image || ''
}
}