From d7939a62d91fcd76819bea0beeb9318fee0c8934 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Sun, 8 Sep 2024 23:49:26 +0800 Subject: [PATCH] fix(xiaohongshu): user note link --- 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 e5c02cfb9909ec..8810ea8e8c608c 100644 --- a/lib/routes/xiaohongshu/user.ts +++ b/lib/routes/xiaohongshu/user.ts @@ -50,7 +50,7 @@ async function handler(ctx) { notes.flatMap((n) => n.map(({ noteCard }) => ({ title: noteCard.displayTitle, - link: `${url}/${noteCard.noteId}`, + link: `${url}/${noteCard.noteId || noteCard.id}`, description: `
${noteCard.displayTitle}`, author: noteCard.user.nickname, upvotes: noteCard.interactInfo.likedCount,