fix var names

This commit is contained in:
Barış Soner Uşaklı
2017-07-27 19:45:54 -04:00
parent 3bcaedfe9d
commit 911eb32e70

View File

@@ -108,7 +108,7 @@ Tags.parse = function (req, data, meta, link, callback) {
return callback(err);
}
meta = results.tags.defaultTags.concat(meta || []).map(function (tag) {
meta = results.tags.tags.concat(meta || []).map(function (tag) {
if (!tag || typeof tag.content !== 'string') {
winston.warn('Invalid meta tag. ', tag);
return tag;
@@ -139,7 +139,7 @@ Tags.parse = function (req, data, meta, link, callback) {
addIfNotExists(meta, 'property', 'og:image:height', 200);
}
link = results.links.defaultLinks.concat(link || []);
link = results.links.links.concat(link || []);
callback(null, {
meta: meta,