mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-08-31 01:48:04 +00:00
Fix the error when previewing
This commit is contained in:
@@ -179,13 +179,12 @@ func handlerUploadText(w http.ResponseWriter, rq *http.Request) {
|
||||
|
||||
if action != "Preview" {
|
||||
hop, errtitle = shroom.UploadText(h, []byte(textData), u)
|
||||
}
|
||||
|
||||
if hop.HasErrors() {
|
||||
HttpErr(w, http.StatusForbidden, hyphaName,
|
||||
errtitle,
|
||||
hop.FirstErrorText())
|
||||
return
|
||||
if hop.HasErrors() {
|
||||
HttpErr(w, http.StatusForbidden, hyphaName,
|
||||
errtitle,
|
||||
hop.FirstErrorText())
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
if action == "Preview" {
|
||||
|
Reference in New Issue
Block a user