From 352cac955d44ace6bae478ce40ab569b50ef97d0 Mon Sep 17 00:00:00 2001 From: X Date: Thu, 12 Dec 2024 22:01:10 +0800 Subject: [PATCH] fix(route/xiaohongshu): remove items url extra slash (#17878) --- lib/routes/xiaohongshu/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/xiaohongshu/user.ts b/lib/routes/xiaohongshu/user.ts index e97a22675..bf082925f 100644 --- a/lib/routes/xiaohongshu/user.ts +++ b/lib/routes/xiaohongshu/user.ts @@ -97,7 +97,7 @@ async function getUserFeeds(url: string, category: string) { notes.flatMap((n) => n.map(({ id, noteCard }) => ({ title: noteCard.displayTitle, - link: `${url}/${noteCard.noteId || id}`, + link: new URL(noteCard.noteId || id, url).toString(), guid: noteCard.noteId || id || noteCard.displayTitle, description: `
${noteCard.displayTitle}`, author: noteCard.user.nickname,