From a7c5a5e81914c8ab137a78e1467e30ed954c8116 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 3 Apr 2014 18:15:09 -0400 Subject: [PATCH] closes #1334 --- src/controllers/index.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/controllers/index.js b/src/controllers/index.js index fc9401cd3e..2e206d3217 100644 --- a/src/controllers/index.js +++ b/src/controllers/index.js @@ -45,10 +45,17 @@ Controllers.home = function(req, res, next) { property: 'og:title', content: 'Index | ' + (meta.config.title || 'NodeBB') }, { - property: "og:type", + property: 'og:type', content: 'website' }]; + if(meta.config['brand:logo']) { + res.locals.metaTags.push({ + property: 'og:image', + content: meta.config['brand:logo'] + }); + } + next(null); }, categories: function (next) {