reject empty post_type

This commit is contained in:
Niko Abeler 2022-11-29 20:47:33 +01:00
parent f380f94043
commit e009505cb3
1 changed files with 4 additions and 0 deletions

View File

@ -206,6 +206,10 @@ func userEditorPostHandler(repo *owl.Repository) func(http.ResponseWriter, *http
userEditorGetHandler(repo)(w, r, ps)
return
}
if post_type == "" {
userEditorGetHandler(repo)(w, r, ps)
return
}
// create post
post, err := user.CreateNewPostFull(owl.PostMeta{