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

View File

@ -21,5 +21,11 @@ func commenterSelfHandler(w http.ResponseWriter, r *http.Request) {
return 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})
} }