comment_domain_path_get.go: include path in return

This commit is contained in:
Adhityaa Chandrasekar
2018-07-25 00:04:42 +05:30
parent 9fb33fbd9d
commit afeef81b29
5 changed files with 36 additions and 30 deletions

View File

@@ -41,7 +41,7 @@ func commentDeleteHandler(w http.ResponseWriter, r *http.Request) {
return
}
domain, err := commentDomainGet(*x.CommentHex)
domain, _, err := commentDomainPathGet(*x.CommentHex)
if err != nil {
bodyMarshal(w, response{"success": false, "message": err.Error()})
return