getUpvote

fun getUpvote(): Boolean

Returns true if the user has upvoted the post and false otherwise.

Return

true if the user has upvoted the post; false, otherwise.