func (p *politeiawww) handleUserCommentsVotes(w http.ResponseWriter, r *http.Request) {
	log.Tracef("handleUserCommentsVotes")

	pathParams := mux.Vars(r)
	token := pathParams["token"]

	user, err := p.getSessionUser(r)
	if err != nil {
		RespondWithError(w, r, 0,
			"handleUserCommentsVotes: getSessionUser %v", err)
		return
	}

	ucvr, err := p.backend.ProcessUserCommentsVotes(user, token)
	if err != nil {
		RespondWithError(w, r, 0,
			"handleUserCommentsVotes: processUserCommentsVotes %v", err)
		return
	}

	util.RespondWithJSON(w, http.StatusOK, ucvr)
}
// handleUserCommentsVotes returns the user votes on comments of a given proposal.
handleUserCommentsVotes returns the user votes on comments of a given proposal.
// handleUserCommentsVotes returns the user votes on comments of a given proposal .
func (p *politeiawww) handleUserCommentsVotes(w http.ResponseWriter, r *http.Request) {
	log.Tracef("handleUserCommentsVotes")
	pathParams := mux.Vars(r)
	token := pathParams["token"]
	user, err := p.getSessionUser(r)
	if err != nil {
		RespondWithError(w, r, 0,
			"handleUserCommentsVotes: getSessionUser %v", err)
		return
	}
	ucvr, err := p.backend.ProcessUserCommentsVotes(user, token)
	if err != nil {
		RespondWithError(w, r, 0,
			"handleUserCommentsVotes: processUserCommentsVotes %v", err)
		return
	}
	util.RespondWithJSON(w, http.StatusOK, ucvr)
}
func ( p * politeiawww ) handleUserCommentsVotes ( w http . ResponseWriter , r * http . Request ) { log . Tracef ( " " ) pathParams := mux . Vars ( r ) token := pathParams [ " " ] user , err := p . getSessionUser ( r ) if err != nil { RespondWithError ( w , r , 0 , " " , err ) return } ucvr , err := p . backend . ProcessUserCommentsVotes ( user , token ) if err != nil { RespondWithError ( w , r , 0 , " " , err ) return } util . RespondWithJSON ( w , http . StatusOK , ucvr ) }
handleUserCommentsVotes returns the user votes on comments of a given proposal.
handleUserCommentsVotes returns the user votes on comments of a given proposal .