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:
@@ -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})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user