Check og:description before description

This commit is contained in:
Pavel Djundik 2017-06-22 22:34:17 +03:00 committed by GitHub
parent f55d765aae
commit 23c7f7296c

View File

@ -51,8 +51,8 @@ function parse(msg, url, res, client) {
toggle.type = "link";
toggle.head = $("title").text();
toggle.body =
$("meta[name=description]").attr("content")
|| $("meta[property=\"og:description\"]").attr("content")
$("meta[property=\"og:description\"]").attr("content")
|| $("meta[name=\"description\"]").attr("content")
|| "No description found.";
toggle.thumb =
$("meta[property=\"og:image\"]").attr("content")