mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-01 14:57:14 +08:00
revert(route/xiaohongshu): add current time as pubDate (#17665)
Reason for revert: The change did not meet the expected behavior or caused issues.
This commit is contained in:
@@ -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',
|
||||
@@ -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) => {
|
||||
@@ -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()),
|
||||
}));
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user