mirror of
https://github.com/thelounge/thelounge
synced 2024-11-22 20:13:07 +00:00
Merge pull request #1255 from thelounge/xPaw/og-description
Check og:description before description
This commit is contained in:
commit
0239fdd2fb
1 changed files with 2 additions and 2 deletions
|
@ -55,8 +55,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")
|
||||
|
|
Loading…
Reference in a new issue