Skip to content
This repository has been archived by the owner on Feb 24, 2022. It is now read-only.

Fix Twitter uses 'name' not 'property' attribute #66

Merged
merged 1 commit into from
Sep 26, 2016

Conversation

pdehaan
Copy link
Contributor

@pdehaan pdehaan commented Sep 15, 2016

Ref: #40

@@ -73,6 +73,7 @@ const metadataRules = {
['meta[property="og:image:secure_url"]', node => node.element.getAttribute('content')],
['meta[property="og:image:url"]', node => node.element.getAttribute('content')],
['meta[property="og:image"]', node => node.element.getAttribute('content')],
['meta[name="twitter:image"]', node => node.element.getAttribute('content')],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed in #40, I added the syntactically correct meta[name="twitter:*"], but kept the existing meta[property="twitter:*"] as a fallback since it seems people are fallible and make mistakes/typos.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling c78a41a on pdehaan:issue-40 into 18c334a on mozilla:master.

@pdehaan
Copy link
Contributor Author

pdehaan commented Sep 15, 2016

r? @jaredkerim @wilsonpage

@jaredlockhart
Copy link
Collaborator

R+!

@jaredlockhart jaredlockhart merged commit 93496b0 into mozilla:master Sep 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants