Compare commits
No commits in common. "46aef4f12f231a16bc226b042a25791c66b172a3" and "1b29e328cfc2ec0f78b768bb46da55895a800976" have entirely different histories.
46aef4f12f
...
1b29e328cf
@ -582,18 +582,6 @@ 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)
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
if err = b.SaveRSS(c.RSSFile, feed); err != nil {
|
||||
log.Println(err)
|
||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
|
||||
tmpl, err := template.ParseFiles(c.WebDir + "/templates/hub.html")
|
||||
tmpl = template.Must(tmpl, err)
|
||||
tmpl.ExecuteTemplate(w, "page-content", session.Values["role"].(int))
|
||||
|
Loading…
x
Reference in New Issue
Block a user