Fix indentation

This commit is contained in:
Mattias Erming 2014-10-14 20:51:27 +02:00
parent 4dc9c66859
commit fea9fb7a85
1 changed files with 8 additions and 4 deletions

View File

@ -64,10 +64,14 @@ function parse(msg, url, res, client) {
var $ = cheerio.load(res.res.text);
toggle.type = "link";
toggle.head = $("title").text();
toggle.body = $('meta[name=description]').attr('content') ||
$('meta[property="og:description"]').attr('content') || "No description found.";
toggle.thumb = $('meta[property="og:image"]').attr('content') ||
$('meta[name="twitter:image:src"]').attr('content') || "";
toggle.body =
$('meta[name=description]').attr('content')
|| $('meta[property="og:description"]').attr('content')
|| "No description found.";
toggle.thumb =
$('meta[property="og:image"]').attr('content')
|| $('meta[name="twitter:image:src"]').attr('content')
|| "";
break;
case "image/png":