feat(zhihu activities): add 'live' type (#143)

This commit is contained in:
Derek
2018-05-16 14:11:26 +08:00
committed by DIYgod
parent a5cedabba0
commit 2a03199251
+7 -2
View File
@@ -63,12 +63,17 @@ module.exports = async (ctx) => {
case 'column':
title = detail.title;
description = `<p>${detail.intro}</p><p><img referrerpolicy="no-referrer" src="${detail.image_url}"/></p>`;
url = `${detail.url}`;
url = detail.url;
break;
case 'topic':
title = detail.name;
description = `<p>${detail.introduction}</p><p>话题关注者人数:${detail.followers_count}</p>`;
url = `${detail.url}`;
url = detail.url;
break;
case 'live':
title = detail.subject;
description = detail.description.replace(/\n|\r/g, '<br>');
url = `https://www.zhihu.com/lives/${detail.id}`;
break;
}