Skip to content

Commit

Permalink
fix(infer-seo-meta-plugin): correct twitter card detection (#215)
Browse files Browse the repository at this point in the history
The key should not be part of the meta content.
  • Loading branch information
dargmuesli committed Sep 7, 2023
1 parent 110fa20 commit 5c175b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/addons/src/plugins/inferSeoMetaPlugin.ts
Expand Up @@ -46,7 +46,7 @@ export interface InferSeoMetaPluginOptions {

const hasOgTitle = !!resolvedMeta.find(meta => meta.property === 'og:title')
const hasOgImage = !!resolvedMeta.find(meta => meta.property === 'og:image')
const hasTwitterCard = !!resolvedMeta.find(meta => meta.content === 'twitter:card')
const hasTwitterCard = !!resolvedMeta.find(meta => meta.name === 'twitter:card')
const hasOgDescription = !!resolvedMeta.find(meta => meta.property === 'og:description')

// ensure meta exists
Expand Down

0 comments on commit 5c175b2

Please sign in to comment.