diff --git a/package.json b/package.json index 4da07d0ca4..26825c5f7e 100644 --- a/package.json +++ b/package.json @@ -55,19 +55,19 @@ "morgan": "^1.3.2", "mousetrap": "^1.5.3", "nconf": "~0.8.2", - "nodebb-plugin-composer-default": "5.0.4", + "nodebb-plugin-composer-default": "5.0.5", "nodebb-plugin-dbsearch": "2.0.6", "nodebb-plugin-emoji-extended": "1.1.1", "nodebb-plugin-emoji-one": "1.2.1", - "nodebb-plugin-markdown": "8.0.2", + "nodebb-plugin-markdown": "8.0.3", "nodebb-plugin-mentions": "2.1.5", "nodebb-plugin-soundpack-default": "1.0.0", "nodebb-plugin-spam-be-gone": "0.5.0", "nodebb-rewards-essentials": "0.0.9", "nodebb-theme-lavender": "4.0.5", - "nodebb-theme-persona": "5.0.15", + "nodebb-theme-persona": "5.0.16", "nodebb-theme-slick": "1.1.0", - "nodebb-theme-vanilla": "6.0.12", + "nodebb-theme-vanilla": "6.0.13", "nodebb-widget-essentials": "3.0.1", "nodemailer": "2.6.4", "nodemailer-sendmail-transport": "1.0.0", diff --git a/src/meta/tags.js b/src/meta/tags.js index 4224f85dee..c347b18d4e 100644 --- a/src/meta/tags.js +++ b/src/meta/tags.js @@ -50,7 +50,7 @@ Tags.parse = function (req, data, meta, link, callback) { }); } - plugins.fireHook('filter:meta.getMetaTags', { req: req, data: data, defaultTags: defaultTags }, next); + plugins.fireHook('filter:meta.getMetaTags', { req: req, data: data, tags: defaultTags }, next); }, links: function (next) { var defaultLinks = [{ @@ -101,14 +101,14 @@ Tags.parse = function (req, data, meta, link, callback) { href: nconf.get('relative_path') + '/assets/uploads/system/touchicon-192.png', }); } - plugins.fireHook('filter:meta.getLinkTags', { req: req, data: data, defaultLinks: defaultLinks }, next); + plugins.fireHook('filter:meta.getLinkTags', { req: req, data: data, links: defaultLinks }, next); }, }, function (err, results) { if (err) { 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,