diff --git a/cmd/backend/rss.go b/cmd/backend/rss.go index 35927d2..686e8c1 100644 --- a/cmd/backend/rss.go +++ b/cmd/backend/rss.go @@ -23,6 +23,10 @@ func GenerateRSS(c *Config, db *DB) (*string, error) { } for _, article := range articles { + if !article.Published { + continue + } + tags, err := db.GetArticleTags(article.ID) if err != nil { return nil, fmt.Errorf("error getting tags for articles for RSS feed: %v", err)