fix(xiaohongshu): guid rule (#16701)

This commit is contained in:
远浅
2024-09-11 20:26:53 +08:00
committed by GitHub
parent c98f0c7d65
commit 7a7309ca1e
+1 -1
View File
@@ -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,