From 5d967b0de3c1957da6a998471f0c1348e8347802 Mon Sep 17 00:00:00 2001
From: Kawauso <92703641+KawausoJyou@users.noreply.github.com>
Date: Thu, 21 Nov 2024 21:42:13 +0800
Subject: [PATCH] revert(route/xiaohongshu): add current time as pubDate
(#17665)
Reason for revert: The change did not meet the expected behavior or caused issues.
---
lib/routes/xiaohongshu/user.ts | 3 ---
1 file changed, 3 deletions(-)
diff --git a/lib/routes/xiaohongshu/user.ts b/lib/routes/xiaohongshu/user.ts
index ed595428d8..1f0ae24702 100644
--- a/lib/routes/xiaohongshu/user.ts
+++ b/lib/routes/xiaohongshu/user.ts
@@ -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: `.url})
${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: `.url})
${item.display_title}`,
author: item.user.nickname,
upvotes: item.interact_info.likedCount,
- pubDate: parseDate(new Date().toISOString()),
}));
};