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