Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Changed oembedUrlWidget to prefer og:image and twitter:image over msapplication-TileImage #9012

Merged
merged 4 commits into from
Dec 8, 2017

Conversation

wferris722
Copy link
Contributor

@RocketChat/core

Closes #7662

Changes order of preference from:
msapplication-TileImage | og:image | twitter:image
to
og:image | twitter:image | msapplication-TileImage

msapplication-TileImage specifies an image at the site level rather than the page level, and requires a background of a color specified to msapplication-TileColor to render correctly. (Currently only TileImage is used)

og:image and twitter:image are used to provide an image associated with the specific page they are specified on, and are probably closer to the intention of a link preview.

twitter:image may have an image sized to dimensions for the purposes of a twitter summary card, and are likely less appropriate to use than og:image when both are specified.

@CLAassistant
Copy link

CLAassistant commented Dec 5, 2017

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@graywolf336 graywolf336 left a comment

Choose a reason for hiding this comment

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

Makes sense, thanks!

@rodrigok rodrigok added this to the 0.60.0 milestone Dec 8, 2017
@rodrigok rodrigok merged commit 813b122 into RocketChat:develop Dec 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move to og:image instead of msapplication-tileimage for links
4 participants