Node.js based forum software built for the modern web
tweaked OG tags for topics
Julian Lamcb8c8f9e4216
diff --git a/src/webserver.js b/src/webserver.jsindex 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 }