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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user