From d8eec5dd2e72a7feff07f0cc0d0e9ec23781f0f2 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 30 Jan 2014 10:12:45 -0500 Subject: [PATCH] fixed missing og:title on category view --- src/webserver.js | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/src/webserver.js b/src/webserver.js index ac0fee5e68..3b07f18343 100644 --- a/src/webserver.js +++ b/src/webserver.js @@ -599,7 +599,7 @@ module.exports.server = server; }, { property: 'og:title', - content: topicData.topic_name + ' | ' + (meta.config.title || 'NodeBB') + content: topicData.topic_name }, { property: 'og:description', @@ -738,16 +738,24 @@ module.exports.server = server; app.build_header({ req: req, res: res, - metaTags: [{ - name: 'title', - content: categoryData.category_name - }, { - name: 'description', - content: categoryData.category_description - }, { - property: "og:type", - content: 'website' - }], + metaTags: [ + { + name: 'title', + content: categoryData.category_name + }, + { + property: 'og:title', + content: categoryData.category_name + }, + { + name: 'description', + content: categoryData.category_description + }, + { + property: "og:type", + content: 'website' + } + ], linkTags: [ { rel: 'alternate',