From 6e57dabdf84b7473a3e6654c85b9345730ebdd1d Mon Sep 17 00:00:00 2001 From: Adhityaa Date: Mon, 11 Jun 2018 12:05:15 +0530 Subject: [PATCH] domain_new.go: use stripped domain name Fixes https://gitlab.com/commento/commento-ce/issues/19 --- api/domain_new.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/domain_new.go b/api/domain_new.go index 3da5370..6e39deb 100644 --- a/api/domain_new.go +++ b/api/domain_new.go @@ -50,7 +50,7 @@ func domainNewHandler(w http.ResponseWriter, r *http.Request) { 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()}) return }