Skip to content

Commit

Permalink
revert(route/xiaohongshu): add current time as pubDate (#17665)
Browse files Browse the repository at this point in the history
Reason for revert: The change did not meet the expected behavior or caused issues.
  • Loading branch information
KawausoJyou authored Nov 21, 2024
1 parent e7d732b commit 5d967b0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/routes/xiaohongshu/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Route, ViewType } from '@/types';
import cache from '@/utils/cache';
import { getUser } from './util';
import InvalidParameterError from '@/errors/types/invalid-parameter';
import { parseDate } from '@/utils/parse-date';

export const route: Route = {
path: '/user/:user_id/:category',
Expand Down Expand Up @@ -58,7 +57,6 @@ async function handler(ctx) {
description: `<img src ="${noteCard.cover.infoList.pop().url}"><br>${noteCard.displayTitle}`,
author: noteCard.user.nickname,
upvotes: noteCard.interactInfo.likedCount,
pubDate: parseDate(new Date().toISOString()),
}))
);
const renderCollect = (collect) => {
Expand All @@ -77,7 +75,6 @@ async function handler(ctx) {
description: `<img src ="${item.cover.info_list.pop().url}"><br>${item.display_title}`,
author: item.user.nickname,
upvotes: item.interact_info.likedCount,
pubDate: parseDate(new Date().toISOString()),
}));
};

Expand Down

0 comments on commit 5d967b0

Please sign in to comment.