Fixed bug where no RSS feed is being generated
This commit is contained in:
parent
a2d219b2c0
commit
da0d65d40b
@ -23,10 +23,6 @@ func GenerateRSS(c *Config, db *DB) (*string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, article := range articles {
|
for _, article := range articles {
|
||||||
if !article.Published {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
tags, err := db.GetArticleTags(article.ID)
|
tags, err := db.GetArticleTags(article.ID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("error getting tags for articles for RSS feed: %v", err)
|
return nil, fmt.Errorf("error getting tags for articles for RSS feed: %v", err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user