updateUpvote

private fun updateUpvote(upvote: Boolean)

Updates the upvote status of a post.

Parameters

upvote

true if the user chooses to upvote the post; false if the user chooses to remove their upvote from the post