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
commit e626745e6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

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 {