fix: url error of users' posts of tieba (#6794)

This commit is contained in:
gxLin
2021-01-26 19:53:04 -05:00
committed by GitHub
parent fdfbc0658f
commit b447455b6a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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` 字段来获取。
+1 -1
View File
@@ -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}`,
};
}),
};