iframely
Version:
oEmbed/2 gateway endpoint. Get embed data for various http links through one self-hosted API
19 lines (17 loc) • 455 B
JavaScript
export default {
getMeta: function(og) {
if (og.article) {
return {
date: og.article.published_time || og.article.modified_time
};
} else if (og.video && og.video.release_date) {
return {
date: og.video.release_date
};
} else if (og.updated_time) {
return {
date: og.updated_time
};
}
}
};