mirror of
https://github.com/elk-zone/elk.git
synced 2024-12-05 03:59:59 +03:00
fallback to hybridGraph
This commit is contained in:
parent
a4eae9891b
commit
bd0a2517c6
1 changed files with 1 additions and 1 deletions
|
@ -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 || ''
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue