fix: Make feed update check more robust by comparing all story IDs

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
2026-01-03 00:09:25 +00:00
parent ab15868397
commit 5554b58f93

View File

@@ -54,7 +54,7 @@ function Feed({ updateCache, filterSmallweb, feedSources }) {
async (result) => {
const newApiStories = result.stories;
const updated = !stories || !stories.length || stories[0].id !== newApiStories[0].id;
const updated = !stories || stories.map(s => s.id).join() !== newApiStories.map(s => s.id).join();
console.log('New stories available:', updated);
if (!updated) return;