Browse Source

Cleanup items

poesty 8 months ago
parent
commit
7ff9c3db24
1 changed files with 2 additions and 1 deletions
  1. 2 1
      rss2hook.go

+ 2 - 1
rss2hook.go

@@ -93,8 +93,9 @@ func checkFeeds(feeds []rss.Feed) {
 		}
 
 		if feed.Unread != 0 {
-			notify(i, feed.Items[len(feed.Items)-1])
+			notify(i, feed.Items[0]) // tbh idk
 			feed.Unread = 0
+			feed.Items = nil // gc
 		}
 	}
 }