label previews with the target URL if all else fails

This commit is contained in:
Matthew Hodgson 2016-04-04 01:06:54 +01:00
parent 96b0f42db2
commit 1de4e0d2dd

View file

@ -78,7 +78,7 @@ module.exports = React.createClass({
src: src,
width: p["og:image:width"],
height: p["og:image:height"],
name: p["og:title"] || p["og:description"],
name: p["og:title"] || p["og:description"] || this.props.link,
size: p["matrix:image:size"],
link: this.props.link,
};