Fixed extensions for upvote api and fixed bug in add-upvote.