From 3bf8f1ea9048124ad008d2e9282deb137fcc89af Mon Sep 17 00:00:00 2001 From: DIYgod Date: Fri, 22 Aug 2025 17:29:53 +0800 Subject: [PATCH] fix(xiaohongshu): update guid generation in getUserFeeds function - Changed the guid assignment to use noteCard.displayTitle instead of constructing a URL, simplifying the logic and improving clarity. --- 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 c36785b71..2f9d95b6f 100644 --- a/lib/routes/xiaohongshu/user.ts +++ b/lib/routes/xiaohongshu/user.ts @@ -98,7 +98,7 @@ async function getUserFeeds(url: string, category: string) { n.map(({ id, noteCard }) => ({ title: noteCard.displayTitle, link: new URL(noteCard.noteId || id, url).toString(), - guid: new URL(noteCard.noteId || id, url).toString() || noteCard.displayTitle, + guid: noteCard.displayTitle, description: `
${noteCard.displayTitle}`, author: noteCard.user.nickname, upvotes: noteCard.interactInfo.likedCount,