From a77fa47a50968550a6de4058c83b0db9a4642dfb Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Thu, 25 Feb 2021 14:20:18 +0200 Subject: SidebarWidget: Skip future-dated feed entries --- src/ui/sidebarwidget.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ui/sidebarwidget.c') diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c index c9a17374..4e908f1e 100644 --- a/src/ui/sidebarwidget.c +++ b/src/ui/sidebarwidget.c @@ -149,6 +149,10 @@ static void updateItems_SidebarWidget_(iSidebarWidget *d) { if (isHidden_FeedEntry(entry)) { continue; /* A hidden entry. */ } + /* Don't show entries in the far future. */ + if (secondsSince_Time(&now, &entry->posted) < -24 * 60 * 60) { + continue; + } /* Exclude entries that are too old for Visited to keep track of. */ if (secondsSince_Time(&now, &entry->discovered) > maxAge_Visited) { break; /* the rest are even older */ -- cgit v1.2.3