Revert "Fix RSS time filters and add draggable grid layout"

This reverts commit 4ee365cfc0.
This commit is contained in:
Shivam Patel
2026-02-09 17:56:49 -05:00
parent 4ee365cfc0
commit cebcb4c8cd
13 changed files with 47 additions and 324 deletions

View File

@@ -85,13 +85,6 @@ async function setupRssTables(db) {
}
}
function normalizeDate(item) {
const raw = item.isoDate || item.pubDate;
if (!raw) return null;
const d = new Date(raw);
return isNaN(d.getTime()) ? null : d.toISOString();
}
async function syncRssFeeds(db) {
if (!RSSParser) return;
const parser = new RSSParser({ timeout: 5000 });
@@ -108,7 +101,7 @@ async function syncRssFeeds(db) {
feed.id,
item.title,
item.link,
normalizeDate(item),
item.pubDate || item.isoDate || null,
item.creator || item.author || null,
(item.contentSnippet || item.content || '').substring(0, 500) || null
);