Skip to content

Commit

Permalink
fix(route/xiaohongshu): remove items url extra slash (#17878)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangzy1 authored Dec 12, 2024
1 parent 2a90282 commit 352cac9
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 352cac9

Please sign in to comment.