mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 09:25:45 +01:00
fix data
This commit is contained in:
@@ -108,7 +108,7 @@ Tags.parse = function (req, data, meta, link, callback) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
meta = results.tags.concat(meta || []).map(function (tag) {
|
||||
meta = results.tags.defaultTags.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.concat(link || []);
|
||||
link = results.links.defaultLinks.concat(link || []);
|
||||
|
||||
callback(null, {
|
||||
meta: meta,
|
||||
|
||||
Reference in New Issue
Block a user