From 0605590d41aeb2a1a755f8db17a370c36ea4cf29 Mon Sep 17 00:00:00 2001 From: william-swl <46880012+william-swl@users.noreply.github.com> Date: Sat, 14 Sep 2024 21:17:58 +0800 Subject: [PATCH] fix: fix pku bbs url error (#16753) --- 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 f5bdc41faa..8139811499 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'), r.url).href, + url: new URL($(this).find('> a.link').attr('href'), 'https://bbs.pku.edu.cn/v2').href, title: $(this).find('.title').text(), }; })