Added title, link and description to cli args.

This commit is contained in:
2024-04-07 19:29:35 +02:00
parent d9bf79d5f8
commit b5f0fe8985
3 changed files with 56 additions and 45 deletions

View File

@ -338,12 +338,7 @@ func PublishArticle(c *control.CliArgs, db *model.DB, s *control.CookieStore) ht
return
}
feed, err := control.GenerateRSS(
db,
"Freimaurer Distrikt Niedersachsen und Sachsen-Anhalt",
"https://distrikt-ni-st.de",
"Freiheit, Gleichheit, Brüderlichkeit, Toleranz und Humanität",
)
feed, err := control.GenerateRSS(db, c.ChanTitle, c.ChanLink, c.ChanDescription)
if err != nil {
log.Println(err)
http.Error(w, err.Error(), http.StatusInternalServerError)