1
mirror of https://gitlab.com/commento/commento.git synced 2026-06-17 09:55:27 -04:00

commenter_self.go: include email details

This commit is contained in:
Adhityaa Chandrasekar
2019-02-18 16:58:55 -05:00
parent 220109a157
commit c9677385f8
+7 -1
View File
@@ -21,5 +21,11 @@ func commenterSelfHandler(w http.ResponseWriter, r *http.Request) {
return
}
bodyMarshal(w, response{"success": true, "commenter": c})
e, err := emailGet(c.Email)
if err != nil {
bodyMarshal(w, response{"success": false, "message": err.Error()})
return
}
bodyMarshal(w, response{"success": true, "commenter": c, "email": e})
}