From cb8c8f9e421651b9ed8fa2a1dceb94464a0e9cbe Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 25 Jul 2013 15:49:55 -0400 Subject: [PATCH] tweaked OG tags for topics --- src/webserver.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/webserver.js b/src/webserver.js index c2963689f2..1e581c150c 100644 --- a/src/webserver.js +++ b/src/webserver.js @@ -238,8 +238,10 @@ var express = require('express'), title: topicData.topic_name, metaTags: [ { name: "title", content: topicData.topic_name }, - { property: 'og:title', content: topicData.topic_name }, + { property: 'og:title', content: topicData.topic_name + ' | ' + (global.config.title || 'NodeBB') }, { property: "og:type", content: 'article' }, + { property: "og:url", content: global.nconf.get('url') + 'topic/' + topicData.slug }, + { property: 'og:image', content: topicData.main_posts[0].picture }, { property: "article:published_time", content: new Date(parseInt(topicData.main_posts[0].timestamp, 10)).toISOString() }, { property: 'article:modified_time', content: new Date(lastMod).toISOString() }, { property: 'article:section', content: topicData.category_name }