Merge pull request #103 from DerekTso/master

add 'topic' feed for zhihu activities
This commit is contained in:
DIYgod
2018-05-13 18:43:11 +08:00
committed by GitHub
+5
View File
@@ -65,6 +65,11 @@ module.exports = async (ctx) => {
description = `<p>${detail.intro}</p><p><img referrerpolicy="no-referrer" src="${detail.image_url}"/></p>`;
url = `${detail.url}`;
break;
case 'topic':
title = detail.name;
description = `<p>${detail.introduction}</p><p>话题关注者人数:${detail.followers_count}</p>`;
url = `${detail.url}`;
break;
}
return {