Check if article has been published before adding it to RSS feed

This commit is contained in:
Jason Streifling 2024-08-31 00:49:35 +02:00
parent e4589f3b84
commit 91ef195a56

View File

@ -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)