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:
parent
3faaedf213
commit
3bf8f1ea90
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue