Vote Model

Users can vote on a comment, which they may agree, or disagree with. Note that only logged in users should be able to vote on a comment.

Attributes #

Attribute Description
id ID of the vote.
comment The CommentModel this vote was made on.
user The UserModel for the user who made this vote.
upvote If this vote was recorded as an upvote.
downvote If this vote was recorded as an downvote.

Get started with Comments

Available for Craft 2 & Craft 3.