aboutsummaryrefslogtreecommitdiff
path: root/internal/feed/cache_v1.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/feed/cache_v1.go')
-rw-r--r--internal/feed/cache_v1.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/feed/cache_v1.go b/internal/feed/cache_v1.go
index fb16027..45182dc 100644
--- a/internal/feed/cache_v1.go
+++ b/internal/feed/cache_v1.go
@@ -159,10 +159,10 @@ func newCachedItem(item feeditem) cachedItem {
}
func (item *cachedItem) similarTo(other *cachedItem, ignoreHash bool) bool {
- return other.Title == item.Title ||
- other.Link == item.Link ||
- other.PublishedDate.Equal(item.PublishedDate) ||
- (!ignoreHash && other.Hash == item.Hash)
+ return other.Title == item.Title &&
+ other.Link == item.Link &&
+ other.PublishedDate.Equal(item.PublishedDate) &&
+ (ignoreHash || other.Hash == item.Hash)
}
func (cf *cachedFeed) deleteItem(index int) {