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.
This commit is contained in:
DIYgod 2025-08-22 17:29:53 +08:00
parent 3faaedf213
commit 3bf8f1ea90
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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: `<img src ="${noteCard.cover.infoList.pop().url}"><br>${noteCard.displayTitle}`,
author: noteCard.user.nickname,
upvotes: noteCard.interactInfo.likedCount,