diff --git a/api/commenter_self.go b/api/commenter_self.go index 23a0d7a..6cb1409 100644 --- a/api/commenter_self.go +++ b/api/commenter_self.go @@ -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}) }