onCommentUpvoted( )


A backend event that fires when a forum comment is upvoted.

The onCommentUpvoted() event handler runs when an existing forum comment in your site is upvoted. The received UpvotedComment object contains information about the comment that was upvoted.

Notes:

  • Only comments on posts with a postType of "QUESTION" can be upvoted.

  • Backend events are not fired when previewing your site.

Method Declaration
Copy
Method Parameters
eventUpvotedCommentRequired

Information about the forum comment that was upvoted.

Was this helpful?
Yes
No