From 3c37dd9a5032aaeb848c581dee4b0f1e06217fa2 Mon Sep 17 00:00:00 2001 From: kaoru nishizoe Date: Wed, 16 Apr 2014 16:31:18 +0900 Subject: [PATCH] =?UTF-8?q?topic/search.json=E3=81=AE=E8=BF=94=E5=8D=B4?= =?UTF-8?q?=E5=80=A4=E3=81=AB=E3=82=B3=E3=83=A1=E3=83=B3=E3=83=88=E6=95=B0?= =?UTF-8?q?=E3=81=A8=E6=9B=B4=E6=96=B0=E6=97=A5=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/helper/opCommunityTopicHelper.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/helper/opCommunityTopicHelper.php b/lib/helper/opCommunityTopicHelper.php index 933c27b..db3f4cc 100644 --- a/lib/helper/opCommunityTopicHelper.php +++ b/lib/helper/opCommunityTopicHelper.php @@ -49,6 +49,8 @@ function op_api_community_topic($topic) 'member' => op_api_member($topic->getMember()), 'body' => nl2br($topic->getBody()), 'created_at' => $topic->getCreatedAt(), + 'updated_at' => $topic->getUpdatedAt(), + 'comment_num' => $topic->getCommunityTopicComment()->count(), ); }