Fixed upvote() to correctly generate UniqueIds for upvotes, preventing duplicate upvotes from a given user on a given post.