From 9a762b87b9beaf29aba5957d3bda484449a5dfbd Mon Sep 17 00:00:00 2001 From: Ricardo_Li Date: Thu, 13 Nov 2014 11:39:56 +0800 Subject: [PATCH] =?UTF-8?q?API=20=E6=94=B9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/v1/topic.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/v1/topic.js b/api/v1/topic.js index 599e406..e8f7ba0 100644 --- a/api/v1/topic.js +++ b/api/v1/topic.js @@ -42,7 +42,7 @@ var index = function (req, res, next) { ep.after('author', topics.length, function () { topics = topics.map(function (topic) { return _.pick(topic, ['id', 'author_id', 'tab', 'content', 'title', 'last_reply_at', - 'good', 'top', 'author']); + 'good', 'top', 'reply_count', 'visit_count', 'create_at', 'author']); }); res.send({data: topics}); @@ -64,7 +64,7 @@ var show = function (req, res, next) { return res.send({error_msg: 'topic_id `' + topicId + '` is not exists.'}); } topic = _.pick(topic, ['id', 'author_id', 'tab', 'content', 'title', 'last_reply_at', - 'good', 'top', 'author']); + 'good', 'top', 'reply_count', 'visit_count', 'create_at', 'author']); if (mdrender) { topic.content = renderHelper.markdown(at.linkUsers(topic.content));