def METHOD_NAME(comment_id, new, v):
	# make sure this account is not a bot
	if request.headers.get("Authorization"): abort(403)
	# make sure new is valid
	if new == "-1" and not ENABLE_DOWNVOTES: abort(403)
	if new not in ["-1", "0", "1"]: abort(400)
	new = int(new)
	# get the comment
	comment = get_comment(comment_id, v=v)
	if getattr(comment, 'is_blocking', False): abort(403, "Can't vote on things from users you've blocked")
	# get the old vote, if we have one
	vote = g.db.query(CommentVote).filter_by(user_id=v.id, comment_id=comment.id).one_or_none()
	# should we just do nothing? we could just do nothing
	if vote and vote.vote_type == new: return "", 204
	# at this point we are guaranteed to be making a change
	# author votes don't matter if it's the author themselves
	points_matter = (v.id != comment.author.id)
	if vote:
		# remove the old score data
		if points_matter:
			comment.author.coins -= vote.vote_type
			comment.author.truescore -= vote.vote_type
			# we'll be saving later anyway, so don't bother doing so here
	else:
		# create new vote data
		vote = CommentVote(
						user_id=v.id,
						vote_type=new,
						comment_id=comment_id,
						app_id=v.client.application.id if v.client else None,
					)
	# update the vote data
	vote.vote_type = new
	real = True
	if v.shadowbanned: real = False
	if v.is_banned and not v.unban_utc: real = False
	vote.real = real
	# add relevant points
	if points_matter:
		comment.author.coins += vote.vote_type
		comment.author.truescore += vote.vote_type
	# database it up
	g.db.add(comment.author)
	g.db.add(vote)
	# update comment stats (this is horrendously slow?!)
	g.db.flush()
	comment.upvotes = g.db.query(CommentVote.comment_id).filter_by(comment_id=comment.id, vote_type=1).count()
	comment.downvotes = g.db.query(CommentVote.comment_id).filter_by(comment_id=comment.id, vote_type=-1).count()
	comment.realupvotes = g.db.query(CommentVote.comment_id).filter_by(comment_id=comment.id, vote_type=1, real=True).count()
	g.db.add(comment)
	g.db.commit()
	return "", 204