179

Comments can now be upvoted and flagged. How do those features work?

Do users get rep for their upvoted comments? Do upvoted comments have any effect on comment sorting? And can users see their own comment upvote number somewhere?

Related:
How do comments work?
The Stack Overflow blog post about comments

Return to FAQ index

0

2 Answers 2

128

Some parts of this answer are taken from the 2009 Stack Overflow blog post Comments: Now with Flags and Votes. Note that flagging has changed considerably since that blog post.

Comment votes     comment upvote arrow

You need 15 reputation to vote comments up.

  • Upvote a comment by clicking on the up arrow that appears when you hover the mouse over the comment.

  • There is no downvoting of comments, only upvotes.

  • You get 30 comment upvotes per day.

  • Comment votes do not affect comment sort order.

  • When there are many comments on a post, some comments are hidden when the page loads, and there is a button to “show N more comments”. The comments with the fewest upvotes are hidden first. The threshold depends on the number of comments on the post and whether the site is a main or meta site.

  • When the question reaches a certain threshold of answers (30 on most sites), all comments with zero votes on both the question and all answers will be collapsed.

  • No reputation of any kind is earned or lost from comment votes, though the Commentator badge is awarded for leaving 10 comments, and the Pundit badge is awarded to those who left 10 comments, each with a score of 5 or more.

  • Comment upvotes can only be undone for a short time and while you did not navigate away from the page. Once you undo the upvote, you cannot upvote the same comment again.

  • You cannot upvote a comment that you've flagged, until the flag is dismissed.

  • You cannot upvote comments on locked posts.

  • No rate limit on comment votes, meaning you can upvote as fast as you want.

Comment flags     comment flag icon

  • In general, you need the flag posts privilege to flag comments. If you don't have that privilege, you can still flag comments on your own posts and those on answers to your own questions, but are limited to "harassment, bigotry, or abuse" and "in need of moderator intervention" flags.

    • You cannot flag comments if you haven't registered your account (that is, you haven't associated a login provider such as Google, Facebook, or Stack Exchange, with it).

    • On sites which award the comment everywhere privilege before the flag posts privilege (Meta Stack Exchange, Stack Apps, and private beta sites), if you have enough reputation to comment but not to flag posts, you can flag any comment, but are limited to the above two flag options until you have full flagging privileges.

    See this answer to Allow new users to flag comments on their own posts.

  • You have as many comment flags per day as you do post flags. Comment flags are counted separately from post flags.

  • If a comment is flagged by a sufficient number of users, it will be automatically deleted. There is no direct penalty for this. Unless the comment is deleted, comment flags will be surfaced to moderators, so if you have a problem with a comment, flag it.

  • You can always delete your own comments by clicking on the "Delete" button that appears when you hover the mouse over the comment. This is not a flag; it takes effect immediately. Note that there's a rate limit for deleting your own upvoted comments, however.

  • Flag a comment by clicking on the flag icon that appears when you hover the mouse over the comment. You'll need to choose a reason (see below).

  • Comment flags can be retracted; however, if your flag was one of the canned options and you retract it, you can't choose that flag option again for that comment.

  • If not handled by a moderator or automatically deleted, "harassment, bigotry, or abuse" comment flags age away after 4 days.

  • Comment flags do not directly affect the commenter in any way if a comment gets deleted, but they do count towards the flagger's helpful flags. A declined comment flag will not count toward a flag ban, but it does count toward one's net helpful flags and can reduce the flagger's daily flag allowance. Helpful or declined flags count the same as post flags toward the net helpful flag calculation.

  • An automatic moderator flag is raised if a user has too many comments on which "unfriendly or unkind" or "harassment, bigotry, or abuse" are marked helpful (manually or automatically) within a certain period.

  • The system does not notify you if your comment is flagged.

  • Flagging has a rate limit. You can flag a comment once every 5 seconds, and open the flag dialog once every 3 seconds. (More details here.)

  • Moderators are limited in the way they can dismiss comment flags.

    • Moderators can mark all pending flags on a comment helpful by editing or deleting a comment. There is no way to manually mark a comment flag helpful other than as a side effect of these actions. This means that borderline flags may be marked declined (though some mods may go through the extra step of deleting the comment to mark the flags as helpful and then manually undeleting it).

    • Alternatively, moderators can manually mark all flags on a comment as declined. There is no way to dismiss multiple pending comment flags with different statuses. This means that if one user has, for example, incorrectly flagged a comment as "harassment, bigotry, or abuse", and you correctly flagged it as "no longer needed", your flag may be declined in the process of declining the other user's flag.

    • Moderators cannot provide a reason for dismissing a comment flag.

  • You cannot flag your own comments.

  • You cannot (re)flag a comments that you already have an active flag on.

  • Comments by the Community user can only be flagged as "no longer needed".

When should I flag a comment?

image of flag dialog

You must specify a reason for each comment flag. The dialog offers a few pre-filled reasons that cover most common cases:

  • It contains harassment, bigotry, or abuse.

    The comment attacks a person or group.

  • It's unfriendly or unkind.

    The comment is rude or condescending.

  • It's no longer needed.

    This comment is outdated, conversational or not relevant to the post.

  • Something else.

    A problem not listed above. Try to be as specific as possible.

For extended explanations of the above flag types and when they should be used, see the "When should I flag a comment?" section in the "guide to moderating comments" FAQ post.

See also When should comments be deleted?.

21
  • 61
    it would probably be quite a bad idea to give rep for comment upvotes, since you can write an almost unlimited number of comments easily (unlike questions and answers) and do some kind of group-rep-ups...
    – markus
    Commented Apr 16, 2009 at 9:23
  • 2
    @tharkun: Maybe, but there are some uses. Maybe they could just downscale it ..give like .5 a point of rep per upvote or something.
    – ryeguy
    Commented Apr 16, 2009 at 13:32
  • 19
    I agree, voting for comments must not change the reputation of the user. However, I think it can be a good idea to rewards good commentators by some badge (given, for example, if you get 50 or 100 comments upvotes)...
    – romaintaz
    Commented Apr 17, 2009 at 6:36
  • 1
    So what is the point of upvoting a comment then? Badges? Commented Nov 11, 2010 at 23:56
  • 6
    @javamonkey79, upvoting comments changes the order in which comments are shown. Besides, does every action really need a rep effect? Commented Nov 15, 2010 at 10:02
  • 2
    @Gamecat, I found it misleading. In reality, no, not every action needs rep effect but when you "upvote" something you have a certain expected behavior. Commented Nov 15, 2010 at 16:48
  • This does not seem to answer the question if the accused can tell if his/her comment if flagged...
    – Aryabhatta
    Commented Feb 18, 2011 at 19:16
  • @Moron: Not really - xe would see it in the 10k tools, if those are accessible to hir. Commented Mar 4, 2011 at 10:33
  • 1
    Does a user receive a notification if one of his comments is flagged and deleted?
    – Jason C
    Commented Aug 17, 2013 at 18:46
  • @JasonC no: meta.stackexchange.com/q/117854
    – tshepang
    Commented Nov 1, 2013 at 21:51
  • Why can't you downvote comments? Commented Jul 12, 2016 at 23:26
  • @John maybe this question helps: meta.stackexchange.com/questions/3615/allow-downvoting-comments Commented Jul 13, 2016 at 23:02
  • I want to cancel my upvote. How do I do that? Commented Nov 16, 2016 at 9:36
  • 1
    @markus How often do you get your comments upvoted (you can't seem to even check that as the top comments list mentioned on a blog has not been implemented)? You've got 59 upvotes on your comment. Would, say, 59 rep from that give you some unfair advantage on others? I don't think so. Also the Pundit badge on SO has been earned by only 12k people, which shows that writing a good comment is not that easy as well.
    – EvgenKo423
    Commented Apr 4, 2021 at 18:54
  • 1
    @markus Yes. =)) But you probably based it on something. Have you changed your point?
    – EvgenKo423
    Commented Apr 6, 2021 at 8:11
12

Can users see their own comment upvote number somewhere?

Unfortunately, there is no way programmed into Stack Exchange that allows you to view your comment upvotes directly. However, you can still do it by using a MySQL query that I just wrote for this purpose.

  • Go to your user profile on the site you wish to view comment upvotes:

    Where to find User Profile

  • In the search box on the right, you should see user:#####. Copy this number (your UserID).

  • Go to https://data.stackexchange.com/math/revision/447134/568807/view-comments-sorted-by-score

  • At the very bottom of the page, there is a "Switch sites:" text box. In that box, type in the name of the site you wish to retrieve comments for. (The same site that you retrieved your UserID from.).

  • Tip: Clicking the little gear between "Switch sites:" and the text box allows you to switch between the meta site and the regular site.

  • In the "Userid" box (2 lines above), paste your UserID (which you got from your profile page), and click "Run Query" (next line).

After about 3 seconds, the list of your comments with non-zero score should show up.

  • For the comment you wish to view in context, choose its PostId, and go to math.stackexchange.com/questions/[PostId goes here]

That will allow you to view the post with your comment that got a high score.

1
  • Just a tag for finding: NLN stands for "no longer needed".
    – Cadoiz
    Commented Aug 13, 2023 at 9:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .