Give autogenerated articles tags as well

This commit is contained in:
2024-09-01 18:48:18 +02:00
parent 79ee20a50e
commit 18617f1dbc
3 changed files with 4 additions and 9 deletions

View File

@ -32,9 +32,12 @@ func GenerateRSS(c *Config, db *DB) (*string, error) {
tagNames = append(tagNames, tag.Name)
}
if article.IsInIssue {
if article.IsInIssue || article.AutoGenerated {
tagNames = append(tagNames, fmt.Sprint("Orient Express ", article.IssueID))
}
if article.AutoGenerated {
tagNames = append(tagNames, "autogenerated")
}
user, err := db.GetUser(article.AuthorID)
if err != nil {