From 353b3047cd93564442c9e6be53c1cb85ef8f882a Mon Sep 17 00:00:00 2001 From: psychobunny Date: Mon, 25 Nov 2013 12:53:11 -0500 Subject: [PATCH] pulling meta info from OP not main_posts --- src/webserver.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/webserver.js b/src/webserver.js index 521cb2f10a..c9e790b010 100644 --- a/src/webserver.js +++ b/src/webserver.js @@ -479,7 +479,7 @@ var path = require('path'), content: topicData.topic_name }, { name: "description", - content: sanitize(topicData.main_posts[0].content.substr(0, 255)).escape().replace('\n', '') + content: sanitize(topicData.posts[0].content.substr(0, 255)).escape().replace('\n', '') }, { property: 'og:title', content: topicData.topic_name + ' | ' + (meta.config.title || 'NodeBB') @@ -491,10 +491,10 @@ var path = require('path'), content: nconf.get('url') + 'topic/' + topicData.slug }, { property: 'og:image', - content: topicData.main_posts[0].picture + content: topicData.posts[0].picture }, { property: "article:published_time", - content: new Date(parseInt(topicData.main_posts[0].timestamp, 10)).toISOString() + content: new Date(parseInt(topicData.posts[0].timestamp, 10)).toISOString() }, { property: 'article:modified_time', content: new Date(lastMod).toISOString()