diff options
| -rw-r--r-- | CHANGELOG.md | 4 | ||||
| -rw-r--r-- | walrss/internal/rss/processor.go | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 131a516..05c5d1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## Unreleased +## 0.4.2 - 2025-02-09 +### Fixed +* Prevent nil dereference when feeds without published dates are processed + ## 0.4.1 - 2025-02-09 ### Changed * Feed fetching will reuse cached content within an hour of a previous fetch without checking for a HTTP 304 (Not Modified) from the remote resource diff --git a/walrss/internal/rss/processor.go b/walrss/internal/rss/processor.go index 8409881..8f1974f 100644 --- a/walrss/internal/rss/processor.go +++ b/walrss/internal/rss/processor.go @@ -268,6 +268,10 @@ func filterFeedContent(st *state.State, feed *gofeed.Feed, feedID string) ([]*fe for _, item := range feed.Items { if _, found := knownItems[item.GUID]; !found { + if item.PublishedParsed == nil { + item.PublishedParsed = &time.Time{} + } + o = append(o, &feedItem{ ID: item.GUID, Title: strings.TrimSpace(item.Title), |
