From b447455b6a0920cae86f4f73b0a39da9f52008fe Mon Sep 17 00:00:00 2001 From: gxLin Date: Wed, 27 Jan 2021 08:53:04 +0800 Subject: [PATCH] fix: url error of users' posts of tieba (#6794) --- docs/bbs.md | 2 +- lib/routes/tieba/user.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/bbs.md b/docs/bbs.md index b3fc9da25..ae580e0c2 100644 --- a/docs/bbs.md +++ b/docs/bbs.md @@ -498,7 +498,7 @@ pageClass: routes ### 用户帖子 - + 用户 ID 可以通过打开用户的主页后查看地址栏的 `un` 字段来获取。 diff --git a/lib/routes/tieba/user.js b/lib/routes/tieba/user.js index 95f7d3229..bbe5c5451 100644 --- a/lib/routes/tieba/user.js +++ b/lib/routes/tieba/user.js @@ -24,7 +24,7 @@ module.exports = async (ctx) => { title: item.title, description: `

${item.content}

${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}`, }; }), };