Skip to content

Commit

Permalink
fix(route/xiaohongshu): remove items url extra slash
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangzy1 committed Dec 12, 2024
1 parent 6ffabac commit 660cd7f
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 @@ -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,
Expand Down

0 comments on commit 660cd7f

Please sign in to comment.