Only provide link in item instead of the entire article via content

This commit is contained in:
2024-08-30 15:17:14 +02:00
parent 10d8fceb77
commit be467521d9
4 changed files with 45 additions and 16 deletions

View File

@ -363,7 +363,7 @@ func PublishArticle(c *b.Config, db *b.DB, s *b.CookieStore) http.HandlerFunc {
return
}
feed, err := b.GenerateRSS(db, c.Title, c.Link, c.Description)
feed, err := b.GenerateRSS(c, db)
if err != nil {
log.Println(err)
http.Error(w, err.Error(), http.StatusInternalServerError)
@ -582,7 +582,7 @@ func DeleteArticle(c *b.Config, db *b.DB, s *b.CookieStore) http.HandlerFunc {
return
}
feed, err := b.GenerateRSS(db, c.Title, c.Link, c.Description)
feed, err := b.GenerateRSS(c, db)
if err != nil {
log.Println(err)
http.Error(w, err.Error(), http.StatusInternalServerError)