otiai10/opengraph

Fetching `og:description` defaults to <meta name="description"> if not found

Closed this issue · 4 comments

@otiai10
Fetching og:description defaults to <meta name="description"> if not found.
Current implementation has this case m.IsDescription() && og.Description == "", is it a spec or bug?

If its a spec, do you think we can avoid that somehow or make the fallback mechanism optional, if og:description is not found? here

Thank you!

@otiai10 any resolutions or ideas you might have to solve the above problem? Thank you.

I checked this document https://ogp.me/ and
IMO, it should prefer og:description rather than description.

Defaulting to <meta name="description" /> makes sense, but og:description should be preferred.

Closed by #21