fix: url error of users' posts of tieba (#6794)
This commit is contained in:
+1
-1
@@ -498,7 +498,7 @@ pageClass: routes
|
||||
|
||||
### 用户帖子
|
||||
|
||||
<Route author="humpylin nczitzk" example="/tieba/user/斗鱼游戏君" path="/tieba/user/:uid" :paramsDesc="['用户 ID']" />
|
||||
<Route author="igxlin nczitzk" example="/tieba/user/斗鱼游戏君" path="/tieba/user/:uid" :paramsDesc="['用户 ID']" />
|
||||
|
||||
用户 ID 可以通过打开用户的主页后查看地址栏的 `un` 字段来获取。
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ module.exports = async (ctx) => {
|
||||
title: item.title,
|
||||
description: `<p>${item.content}</p>${media}`,
|
||||
pubDate: new Date(item.create_time * 1000).toUTCString(),
|
||||
link: `https://tieba.baidu.com/p/${item.post_id}?pid=${item.thread_id}&cid=#${item.thread_id}`,
|
||||
link: `https://tieba.baidu.com/p/${item.thread_id}?pid=${item.post_id}&cid=#${item.post_id}`,
|
||||
};
|
||||
}),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user