Skip to content

Commit

Permalink
Do not match on empty date
Browse files Browse the repository at this point in the history
  • Loading branch information
Law Zava committed Apr 22, 2020
1 parent 84bb2a1 commit b979554
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions feed/feed.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ func (f *Feed) broadcastFeed(stories []*gofeed.Item, source *config.Source) erro
}

func storyMatchesConfig(story *gofeed.Item, source *config.Source) bool {
if story.PublishedParsed == nil {
return false
}

if story.PublishedParsed.Before(source.IgnoreStoriesBefore) {
return false
}
Expand Down
2 changes: 1 addition & 1 deletion snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: mynews
version: '1.2.0'
version: '1.2.1'
summary: Personalized news feed parser & broadcast
description: |
Easily specify your RSS/Atom sources and broadcast preferences to get personalized news feed.
Expand Down

0 comments on commit b979554

Please # to comment.