From 1462bce6a6129683795686aa7ee147431bd47678 Mon Sep 17 00:00:00 2001 From: DerekCao Date: Sun, 13 May 2018 12:58:30 +0800 Subject: [PATCH] add 'topic' feed for zhihu activities --- routes/zhihu/activities.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/routes/zhihu/activities.js b/routes/zhihu/activities.js index 034a807f3..a35ac0ba2 100644 --- a/routes/zhihu/activities.js +++ b/routes/zhihu/activities.js @@ -65,6 +65,11 @@ module.exports = async (ctx) => { description = `

${detail.intro}

`; url = `${detail.url}`; break; + case 'topic': + title = detail.name; + description = `

${detail.introduction}

话题关注者人数:${detail.followers_count}

`; + url = `${detail.url}`; + break; } return {