iframely/plugins/links/oembed-thumbnail.js
module.exports = {
getLink: function(oembed) {
if (oembed.thumbnail_url) {
return {
href: oembed.thumbnail_url,
type: CONFIG.T.image,
rel: [CONFIG.R.thumbnail, CONFIG.R.oembed],
width: oembed.thumbnail_width,
height: oembed.thumbnail_height
};
}
}
};