Skip to content

Commit

Permalink
fix(xiaohongshu): guid rule (DIYgod#16701)
Browse files Browse the repository at this point in the history
  • Loading branch information
unliar committed Sep 11, 2024
1 parent c98f0c7 commit 7a7309c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/routes/xiaohongshu/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async function handler(ctx) {
n.map(({ id, noteCard }) => ({
title: noteCard.displayTitle,
link: `${url}/${noteCard.noteId || id}`,
guid: noteCard.noteId || id || noteCard.cover?.infoList?.[0]?.url || noteCard.displayTitle,
guid: noteCard.noteId || id || noteCard.displayTitle,
description: `<img src ="${noteCard.cover.infoList.pop().url}"><br>${noteCard.displayTitle}`,
author: noteCard.user.nickname,
upvotes: noteCard.interactInfo.likedCount,
Expand Down

0 comments on commit 7a7309c

Please sign in to comment.