Corrected name of detect upvote function