Check og:description before description
This commit is contained in:
parent
f55d765aae
commit
23c7f7296c
@ -51,8 +51,8 @@ function parse(msg, url, res, client) {
|
|||||||
toggle.type = "link";
|
toggle.type = "link";
|
||||||
toggle.head = $("title").text();
|
toggle.head = $("title").text();
|
||||||
toggle.body =
|
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.";
|
|| "No description found.";
|
||||||
toggle.thumb =
|
toggle.thumb =
|
||||||
$("meta[property=\"og:image\"]").attr("content")
|
$("meta[property=\"og:image\"]").attr("content")
|
||||||
|
Loading…
Reference in New Issue
Block a user