Compare commits
No commits in common. "5dc5590da94d4732a44ea0442efeb679c8edd24f" and "364112a0a406bfba0f46541f9ec9e7e1cd72215d" have entirely different histories.
5dc5590da9
...
364112a0a4
@ -93,10 +93,6 @@ func SubmitArticle(c *b.Config, db *b.DB, s *b.CookieStore) http.HandlerFunc {
|
|||||||
http.Error(w, "Bitte den Titel eingeben.", http.StatusBadRequest)
|
http.Error(w, "Bitte den Titel eingeben.", http.StatusBadRequest)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if len(article.Summary) == 0 {
|
|
||||||
http.Error(w, "Bitte die Beschreibung eingeben.", http.StatusBadRequest)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
article.ID, err = db.AddArticle(article)
|
article.ID, err = db.AddArticle(article)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -183,10 +179,6 @@ func ResubmitArticle(c *b.Config, db *b.DB, s *b.CookieStore) http.HandlerFunc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
summary := r.PostFormValue("article-summary")
|
summary := r.PostFormValue("article-summary")
|
||||||
if len(summary) == 0 {
|
|
||||||
http.Error(w, "Bitte die Beschreibung eingeben.", http.StatusBadRequest)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
content := r.PostFormValue("article-content")
|
content := r.PostFormValue("article-content")
|
||||||
if len(content) == 0 {
|
if len(content) == 0 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user