fix(route/xiaohongshu): remove items url extra slash (#17878)

This commit is contained in:
X
2024-12-12 22:01:10 +08:00
committed by GitHub
parent 2a90282da9
commit 352cac955d
+1 -1
View File
@@ -97,7 +97,7 @@ async function getUserFeeds(url: string, category: string) {
notes.flatMap((n) =>
n.map(({ id, noteCard }) => ({
title: noteCard.displayTitle,
link: `${url}/${noteCard.noteId || id}`,
link: new URL(noteCard.noteId || id, url).toString(),
guid: noteCard.noteId || id || noteCard.displayTitle,
description: `<img src ="${noteCard.cover.infoList.pop().url}"><br>${noteCard.displayTitle}`,
author: noteCard.user.nickname,