aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAKP <abi@tdpain.net>2025-02-11 12:19:56 +0000
committerAKP <abi@tdpain.net>2025-02-11 12:19:56 +0000
commit940680fc1b818436a05c51348e1e85ed9b46479b (patch)
tree9a15cced143f3ab25d019fbc4281c00383cc75bc
parent6b54dfa01d2f8f0bb0b27bbd0e56225150794b3c (diff)
Flip inverted boolean check
-rw-r--r--CHANGELOG.md4
-rw-r--r--walrss/internal/rss/processor.go2
2 files changed, 5 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index dcbb83f..4345235 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.4 - 2025-02-11
+### Fixed
+* Flip inverted boolean check that filtered out unseen articles instead of seen articles
+
## 0.4.3 - 2025-02-11
### Changed
* When no feed items are stored in the database for a particular feed, fall back to using the old time-based detection method
diff --git a/walrss/internal/rss/processor.go b/walrss/internal/rss/processor.go
index 9dc7ff7..8a9885d 100644
--- a/walrss/internal/rss/processor.go
+++ b/walrss/internal/rss/processor.go
@@ -316,7 +316,7 @@ func filterFeedContent(st *state.State, interval time.Duration, feed *gofeed.Fee
} else {
for _, item := range feed.Items {
- if _, found := knownItems[item.GUID]; found {
+ if _, found := knownItems[item.GUID]; !found {
if item.PublishedParsed == nil {
item.PublishedParsed = &time.Time{}
}