Check if article has been published before adding it to RSS feed
This commit is contained in:
parent
e4589f3b84
commit
91ef195a56
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user