domain_new.go: use stripped domain name
Fixes https://gitlab.com/commento/commento-ce/issues/19
This commit is contained in:
parent
14509adaba
commit
6e57dabdf8
@ -50,7 +50,7 @@ func domainNewHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if err = domainModeratorNew(*x.Domain, o.Email); err != nil {
|
if err = domainModeratorNew(domain, o.Email); err != nil {
|
||||||
writeBody(w, response{"success": false, "message": err.Error()})
|
writeBody(w, response{"success": false, "message": err.Error()})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user