Revert "Fix RSS time filters and add draggable grid layout"
This reverts commit 4ee365cfc0.
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user