forked from Mirrors/elk
use 404
This commit is contained in:
parent
a650b1f369
commit
eab2342d91
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ export default defineEventHandler(async (event) => {
|
||||||
if (!ogImageUrl.startsWith('https')) {
|
if (!ogImageUrl.startsWith('https')) {
|
||||||
// If the og:image is not https, we can't use it
|
// If the og:image is not https, we can't use it
|
||||||
throw createError({
|
throw createError({
|
||||||
statusCode: 406,
|
statusCode: 404, // Must be 404 so the srcset can fallback to the default image
|
||||||
statusMessage: 'og:image must be https.',
|
statusMessage: 'og:image must be https.',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue