feat: 优化知乎话题url (#2499)
原来是api的url:`https://api.zhihu.com/topics/19565908` 改为正常浏览的url:`https://www.zhihu.com/topic/19565908`
This commit is contained in:
@@ -75,7 +75,7 @@ module.exports = async (ctx) => {
|
||||
case 'topic':
|
||||
title = detail.name;
|
||||
description = `<p>${detail.introduction}</p><p>话题关注者人数:${detail.followers_count}</p>`;
|
||||
url = detail.url;
|
||||
url = `https://www.zhihu.com/topic/${detail.url.split('/').pop()}`;
|
||||
break;
|
||||
case 'live':
|
||||
title = detail.subject;
|
||||
|
||||
Reference in New Issue
Block a user