From 94eacdf706c407b33dfca91eb6029576b7f75c6a Mon Sep 17 00:00:00 2001 From: Guorui Yu Date: Wed, 25 Sep 2024 21:09:00 +0800 Subject: [PATCH] fix(route): fix URL concatenation of PKU BBS posts (#16922) --- lib/routes/pku/bbs/hot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/pku/bbs/hot.ts b/lib/routes/pku/bbs/hot.ts index 813981149..fbe9bd353 100644 --- a/lib/routes/pku/bbs/hot.ts +++ b/lib/routes/pku/bbs/hot.ts @@ -44,7 +44,7 @@ async function handler() { const listItems = $('#list-content .list-item') .map(function () { return { - url: new URL($(this).find('> a.link').attr('href'), 'https://bbs.pku.edu.cn/v2').href, + url: new URL($(this).find('> a.link').attr('href'), 'https://bbs.pku.edu.cn/v2/').href, title: $(this).find('.title').text(), }; })