Skip to content

Commit

Permalink
Mark a shot as "image" type
Browse files Browse the repository at this point in the history
When the URL is copy and pasted onto its own line in a [discourse.org](https://discourse.org) forum, the preview looks like this:

[![](https://screenshotscdn.firefoxusercontent.com/images/65241f16-f327-4f8f-a79e-a581088874eb.png)](https://screenshots.firefox.com/p2rtWjzO6zbC7JNf/forum.bors.tech)

If the OpenGraph type is set to "image", it'll actually embed the image directly without any of the superflouous title stuff, the same way it does for other image hosts like imgur.
  • Loading branch information
notriddle authored Sep 11, 2018
1 parent 0208699 commit 360ecea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/pages/shot/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class Head extends React.Component {
return null;
}
const og = [
<meta property="og:type" content="website" key="ogtype" />,
<meta property="og:type" content="image" key="ogtype" />,
<meta property="og:title" content={this.props.shot.title} key="ogtitle" />
];
const twitter = [
Expand Down

0 comments on commit 360ecea

Please sign in to comment.