Fix indentation
This commit is contained in:
parent
4dc9c66859
commit
fea9fb7a85
@ -64,10 +64,14 @@ function parse(msg, url, res, client) {
|
|||||||
var $ = cheerio.load(res.res.text);
|
var $ = cheerio.load(res.res.text);
|
||||||
toggle.type = "link";
|
toggle.type = "link";
|
||||||
toggle.head = $("title").text();
|
toggle.head = $("title").text();
|
||||||
toggle.body = $('meta[name=description]').attr('content') ||
|
toggle.body =
|
||||||
$('meta[property="og:description"]').attr('content') || "No description found.";
|
$('meta[name=description]').attr('content')
|
||||||
toggle.thumb = $('meta[property="og:image"]').attr('content') ||
|
|| $('meta[property="og:description"]').attr('content')
|
||||||
$('meta[name="twitter:image:src"]').attr('content') || "";
|
|| "No description found.";
|
||||||
|
toggle.thumb =
|
||||||
|
$('meta[property="og:image"]').attr('content')
|
||||||
|
|| $('meta[name="twitter:image:src"]').attr('content')
|
||||||
|
|| "";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "image/png":
|
case "image/png":
|
||||||
|
Loading…
Reference in New Issue
Block a user