diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-25 14:20:18 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-25 14:20:18 +0200 |
commit | a77fa47a50968550a6de4058c83b0db9a4642dfb (patch) | |
tree | f676edc5755bfe9ad47f9e7825b417e045b03282 /src/ui/sidebarwidget.c | |
parent | 45049903a304a6762d5656890213c8ad5a1db3c3 (diff) |
SidebarWidget: Skip future-dated feed entries
Diffstat (limited to 'src/ui/sidebarwidget.c')
-rw-r--r-- | src/ui/sidebarwidget.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) { | |||
149 | if (isHidden_FeedEntry(entry)) { | 149 | if (isHidden_FeedEntry(entry)) { |
150 | continue; /* A hidden entry. */ | 150 | continue; /* A hidden entry. */ |
151 | } | 151 | } |
152 | /* Don't show entries in the far future. */ | ||
153 | if (secondsSince_Time(&now, &entry->posted) < -24 * 60 * 60) { | ||
154 | continue; | ||
155 | } | ||
152 | /* Exclude entries that are too old for Visited to keep track of. */ | 156 | /* Exclude entries that are too old for Visited to keep track of. */ |
153 | if (secondsSince_Time(&now, &entry->discovered) > maxAge_Visited) { | 157 | if (secondsSince_Time(&now, &entry->discovered) > maxAge_Visited) { |
154 | break; /* the rest are even older */ | 158 | break; /* the rest are even older */ |